# Automatically generated by apkbuild-cpan, template 3 # Maintainer: Leonardo Arena pkgname=perl-scope-upper #_pkgreal is used by apkbuild-cpan to find modules at MetaCpan _pkgreal=Scope-Upper pkgver=0.34 pkgrel=2 pkgdesc="Act on upper scopes." url="https://metacpan.org/release/Scope-Upper/" 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/V/VP/VPIT/Scope-Upper-$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=" f24e169c8c03e146af1a05aa967aeb8d7ffc8aa8401ea72dd89d6e16f5f49f73e62f316a9bfbbf18f40be059ecd087fd23d82606c4e9d64fa001118f2f61d31f Scope-Upper-0.34.tar.gz "