summaryrefslogblamecommitdiff
path: root/user/perl-test-cleannamespaces/APKBUILD
blob: 718bc3a27398ad4beff16f32655645f811b6644c (plain) (tree)



































                                                                                                                                                                               
# 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"