summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-10-01 22:34:26 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-10-01 22:34:26 +0000
commit308e97d0092865fadbc3a2bdd759a79bc723499c (patch)
treebf9c9cb6e1b61452f0984b463e42bd6a2448ac80
parenta177620044d694e8a9d65599263980dcc6b94bff (diff)
downloadpackages-308e97d0092865fadbc3a2bdd759a79bc723499c.tar.gz
packages-308e97d0092865fadbc3a2bdd759a79bc723499c.tar.bz2
packages-308e97d0092865fadbc3a2bdd759a79bc723499c.tar.xz
packages-308e97d0092865fadbc3a2bdd759a79bc723499c.zip
user/perl-namespace-autoclean: new package
-rw-r--r--user/perl-namespace-autoclean/APKBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/user/perl-namespace-autoclean/APKBUILD b/user/perl-namespace-autoclean/APKBUILD
new file mode 100644
index 000000000..77163cc96
--- /dev/null
+++ b/user/perl-namespace-autoclean/APKBUILD
@@ -0,0 +1,34 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
+pkgname=perl-namespace-autoclean
+pkgver=0.28
+pkgrel=0
+pkgdesc="Keep imports out of your Perl namespace"
+url="https://metacpan.org/release/namespace-autoclean"
+arch="noarch"
+license="Artistic-1.0-Perl"
+depends="perl-b-hooks-endofscope perl-namespace-clean perl-sub-identify"
+makedepends="perl-dev"
+checkdepends="perl-moo perl-moose perl-mouse perl-test-requires"
+subpackages="$pkgname-doc"
+source="https://cpan.metacpan.org/authors/id/E/ET/ETHER/namespace-autoclean-$pkgver.tar.gz"
+builddir="$srcdir/namespace-autoclean-$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="2541f69862b334fcfe30059d025668175de1b182a5c8ee8f2619bf1d661c316a38fe2014f274bb23e887cd36959f98abb297154ac8ceb600e2e93cbd4a75e28d namespace-autoclean-0.28.tar.gz"