# Automatically generated by apkbuild-cpan, template 1 # Maintainer: Natanael Copa pkgname=perl-devel-leak _pkgreal=Devel-Leak pkgver=0.03 pkgrel=12 pkgdesc="Utility for looking for perl objects that are not reclaimed" url="https://metacpan.org/release/Devel-Leak" arch="all" license="GPL-1.0-or-later OR Artistic-1.0-Perl" makedepends="perl-dev" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/N/NI/NI-S/$_pkgreal-$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-$pkgver" prepare() { export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor } build() { export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') make } check() { make test } package() { make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } sha512sums="177f64b87fa6ab08b93f7c5bfcbaf4421e8431bf795976a0a7efa0120828984fed29a2bc12918e5bea9ea3edccf6316ba8daf704f349aece84b45bdd11f57707 Devel-Leak-0.03.tar.gz"