# Contributor: A. Wilcox <awilfox@adelielinux.org> # Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house> pkgname=perl-namespace-clean _pkgreal=namespace-clean _author=RIBASUSHI _au=${_author%%"${_author#??}"} _a=${_author%%"${_author#?}"} pkgver=0.27 pkgrel=0 pkgdesc="Keep imports and functions out of your Perl namespace" url="https://metacpan.org/release/namespace-clean" arch="noarch" license="Artistic-1.0-Perl OR GPL-1.0+" depends="perl perl-b-hooks-endofscope perl-package-stash" makedepends="perl-dev" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-$pkgver" build() { PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor make } check() { make test } package() { make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } sha512sums="4422640656602e44c6d3675e55a0e699f8c0e07abbaf11f0b0905043f90e13bb95ee0eaa4c4a08c853296825dd8ef33c806e0a7c284a70448e35ac3354545744 namespace-clean-0.27.tar.gz"