# Automatically generated by apkbuild-cpan, template 3 # Contributor: Timothy Legge # Maintainer: Timothy Legge pkgname=perl-padwalker #_pkgreal is used by apkbuild-cpan to find modules at MetaCpan _pkgreal=PadWalker pkgver=2.5 pkgrel=3 pkgdesc="play with other peoples' lexical variables" url="https://metacpan.org/release/PadWalker/" arch="all" license="GPL-1.0-or-later OR Artistic-1.0-Perl" depends="perl" makedepends="perl-dev" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/R/RO/ROBIN/PadWalker-$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="b0ed680be4a06e5f621b09e57fa02a6516ceca89dca6922bd134f0433f699584a535c0b1155ee54c1a8d857fb989a944dec5013ccb84c41447cac47e12593b90 PadWalker-2.5.tar.gz"