summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-11-17 23:34:40 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-11-17 23:34:40 +0000
commit5ae0e9a86ad9fb5bff704d2a2577ee408499d0e5 (patch)
treef6ccb7c8aff84f9db45df181d90bc6336c370ae9
parentf0230dc2c2d2b4d181516090282161151cdf34ed (diff)
downloadpackages-5ae0e9a86ad9fb5bff704d2a2577ee408499d0e5.tar.gz
packages-5ae0e9a86ad9fb5bff704d2a2577ee408499d0e5.tar.bz2
packages-5ae0e9a86ad9fb5bff704d2a2577ee408499d0e5.tar.xz
packages-5ae0e9a86ad9fb5bff704d2a2577ee408499d0e5.zip
user/perl-module-pluggable: new package
-rw-r--r--user/perl-module-pluggable/APKBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/user/perl-module-pluggable/APKBUILD b/user/perl-module-pluggable/APKBUILD
new file mode 100644
index 000000000..e12ff2718
--- /dev/null
+++ b/user/perl-module-pluggable/APKBUILD
@@ -0,0 +1,34 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
+pkgname=perl-module-pluggable
+_pkgname=Module-Pluggable
+pkgver=5.2
+pkgrel=0
+pkgdesc="Add plugin support to Perl modules"
+url="https://metacpan.org/release/Module-Pluggable"
+arch="noarch"
+license="Artistic-1.0-Perl OR GPL-2.0-only"
+depends=""
+makedepends="perl-dev"
+subpackages="$pkgname-doc"
+source="https://cpan.metacpan.org/authors/id/S/SI/SIMONW/Module-Pluggable-$pkgver.tar.gz"
+builddir="$srcdir/Module-Pluggable-$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="7df8ee6713c8e0d4df756736c43c2033632cb8887c82ed5b9f38476dbf402b5daa3af83d3b2bd1228afb020ce5855831812f86299b63518e04e0929390b0c5f5 Module-Pluggable-5.2.tar.gz"