summaryrefslogtreecommitdiff
path: root/user/perl-namespace-clean
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-10-01 21:52:01 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-10-01 21:52:01 +0000
commit09a46eb4d9dce4b2a8534271b98266eb49f0c4f0 (patch)
treea9765dbc20468f40964c264943d0683c8391642b /user/perl-namespace-clean
parent39f8f2bf216744d93a0cd3588f57f8bec2781bfe (diff)
downloadpackages-09a46eb4d9dce4b2a8534271b98266eb49f0c4f0.tar.gz
packages-09a46eb4d9dce4b2a8534271b98266eb49f0c4f0.tar.bz2
packages-09a46eb4d9dce4b2a8534271b98266eb49f0c4f0.tar.xz
packages-09a46eb4d9dce4b2a8534271b98266eb49f0c4f0.zip
user/perl-namespace-clean: new package
Diffstat (limited to 'user/perl-namespace-clean')
-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"