diff options
Diffstat (limited to 'user')
-rw-r--r-- | user/perl-test-cleannamespaces/APKBUILD | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/user/perl-test-cleannamespaces/APKBUILD b/user/perl-test-cleannamespaces/APKBUILD new file mode 100644 index 000000000..718bc3a27 --- /dev/null +++ b/user/perl-test-cleannamespaces/APKBUILD @@ -0,0 +1,36 @@ +# Contributor: A. Wilcox <awilfox@adelielinux.org> +# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org> +pkgname=perl-test-cleannamespaces +pkgver=0.23 +pkgrel=0 +pkgdesc="Check Perl code for uncleaned imports" +url="https://metacpan.org/release/Test-CleanNamespaces" +arch="noarch" +license="Artistic-1.0-Perl" +depends="perl-file-pushd perl-module-runtime perl-namespace-clean + perl-package-stash perl-sub-identify" +makedepends="perl-dev" +checkdepends="perl-moo perl-mouse perl-sub-exporter perl-test-deep + perl-test-needs perl-test-warnings" +subpackages="$pkgname-doc" +source="https://cpan.metacpan.org/authors/id/E/ET/ETHER/Test-CleanNamespaces-$pkgver.tar.gz" +builddir="$srcdir/Test-CleanNamespaces-$pkgver" + +build() { + cd "$builddir" + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor + make +} + +check() { + cd "$builddir" + make test +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +sha512sums="c40587c09bcd6a6ebc6801e12a3d33fcd2695b650fe02546a8a6da7d038ba5b1218d730a09f3b8942824a0506aca3edfcbcdf204906569dad5c46816b91e8a99 Test-CleanNamespaces-0.23.tar.gz" |