# Automatically generated by apkbuild-cpan, template 3
# Contributor: Nicolas Lorin <androw95220@gmail.com>
# Maintainer: Nicolas Lorin <androw95220@gmail.com>
pkgname=perl-proc-processtable
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Proc-ProcessTable
pkgver=0.636
pkgrel=2
pkgdesc="Perl extension to access the unix process table"
url="https://metacpan.org/release/Proc-ProcessTable/"
arch="all"
license="Artistic-2.0"
depends="perl"
makedepends="perl-dev musl-obstack-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/J/JW/JWB/Proc-ProcessTable-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	make test
}

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

sha512sums="
9678c9bd4bf70c4188265824fbc79e2f951f9e3722733172838fe20748b6938babd5a4db44bb1b6c8c59b7718ade634b3f25a462a82291dc2edaa620baa436cd  Proc-ProcessTable-0.636.tar.gz
"
