summaryrefslogtreecommitdiff
path: root/user/perl-test-cleannamespaces/APKBUILD
blob: 71eb1e9d78465f38ec5de98782089471ab0d60bc (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.24
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="f99d3dea0af3ae654819c72ed9672234953edf5c8e5f3c6271a578761ee371e2ed670df07a8a8c2adba91c42404ac94b8d479acc91ae16a4536c0f2fd99809a7  Test-CleanNamespaces-0.24.tar.gz"