summaryrefslogtreecommitdiff
path: root/user/perl-namespace-clean/APKBUILD
blob: 822d22d8105ce32ac40d0359e3c5a4959474b8c1 (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
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
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"
depends="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"