# Automatically generated by apkbuild-cpan, template 3
# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=perl-parallel-pipes
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Parallel-Pipes
pkgver=0.200
pkgrel=0
pkgdesc="Parallel processing using pipe(2) for communication and synchronization"
url="https://metacpan.org/release/Parallel-Pipes/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl"
makedepends="perl-module-build-tiny"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/S/SK/SKAJI/Parallel-Pipes-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	perl Build.PL --installdirs=vendor
	./Build
}

check() {
	./Build test
}

package() {
	./Build install --destdir="$pkgdir"
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="
5ad9b584a32c8a501ab0df14f3d1937dc8dac1f0077edf481515354f12b8a510208259fd353ff9d6051d227ea9d648c1e117c4c5123c4a806d0928a6ca5deead  Parallel-Pipes-0.200.tar.gz
"
