# Contributor: A. Wilcox # Maintainer: Síle Ekaterin Liszka pkgname=perl-test-cleannamespaces _pkgreal=Test-CleanNamespaces _author=ETHER _au=${_author%%"${_author#??}"} _a=${_author%%"${_author#?}"} pkgver=0.24 pkgrel=0 pkgdesc="Check Perl code for uncleaned imports" url="https://metacpan.org/release/Test-CleanNamespaces" arch="noarch" license="Artistic-1.0-Perl OR GPL-1.0+" depends="perl perl-file-pushd perl-module-runtime perl-namespace-clean perl-package-stash perl-sub-identify" checkdepends="perl-moo perl-mouse perl-sub-exporter perl-test-deep perl-test-needs perl-test-warnings" 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="f99d3dea0af3ae654819c72ed9672234953edf5c8e5f3c6271a578761ee371e2ed670df07a8a8c2adba91c42404ac94b8d479acc91ae16a4536c0f2fd99809a7 Test-CleanNamespaces-0.24.tar.gz"