summaryrefslogtreecommitdiff
path: root/user/perl-namespace-clean/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'user/perl-namespace-clean/APKBUILD')
-rw-r--r--user/perl-namespace-clean/APKBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/user/perl-namespace-clean/APKBUILD b/user/perl-namespace-clean/APKBUILD
new file mode 100644
index 000000000..7c4d0ba43
--- /dev/null
+++ b/user/perl-namespace-clean/APKBUILD
@@ -0,0 +1,33 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
+pkgname=perl-namespace-clean
+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/R/RI/RIBASUSHI/namespace-clean-$pkgver.tar.gz"
+builddir="$srcdir/namespace-clean-$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="4422640656602e44c6d3675e55a0e699f8c0e07abbaf11f0b0905043f90e13bb95ee0eaa4c4a08c853296825dd8ef33c806e0a7c284a70448e35ac3354545744 namespace-clean-0.27.tar.gz"