summaryrefslogtreecommitdiff
path: root/user/perl-universal-require
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-10-01 22:51:35 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-10-01 22:51:35 +0000
commit74e8c7e923ee043dbed463026b61b6a3ee3e0a62 (patch)
tree3d2bf9a91a0e7cbf3ee03da0634dd87588845217 /user/perl-universal-require
parent04ebf9d8ad42d2d00112898c4974564b28abeefc (diff)
downloadpackages-74e8c7e923ee043dbed463026b61b6a3ee3e0a62.tar.gz
packages-74e8c7e923ee043dbed463026b61b6a3ee3e0a62.tar.bz2
packages-74e8c7e923ee043dbed463026b61b6a3ee3e0a62.tar.xz
packages-74e8c7e923ee043dbed463026b61b6a3ee3e0a62.zip
user/perl-universal-require: new package
Diffstat (limited to 'user/perl-universal-require')
-rw-r--r--user/perl-universal-require/APKBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/user/perl-universal-require/APKBUILD b/user/perl-universal-require/APKBUILD
new file mode 100644
index 000000000..4bf801678
--- /dev/null
+++ b/user/perl-universal-require/APKBUILD
@@ -0,0 +1,33 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
+pkgname=perl-universal-require
+pkgver=0.18
+pkgrel=0
+pkgdesc="require() Perl modules from a variable"
+url="https://metacpan.org/release/UNIVERSAL-require"
+arch="noarch"
+license="Artistic-1.0-Perl"
+depends=""
+makedepends="perl-dev"
+subpackages="$pkgname-doc"
+source="https://cpan.metacpan.org/authors/id/N/NE/NEILB/UNIVERSAL-require-$pkgver.tar.gz"
+builddir="$srcdir/UNIVERSAL-require-$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="4e1dbb62f850a2f3da3301e37862d03ad89106e9fd55ac8161ae56eff936948f87b9215c734c103d8031e1b712847bff86de43329f65f00e7e34ee83bb66c22d UNIVERSAL-require-0.18.tar.gz"