summaryrefslogtreecommitdiff
path: root/user/perl-test-cleannamespaces/APKBUILD
blob: 718bc3a27398ad4beff16f32655645f811b6644c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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"