summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--user/perl-sub-quote/APKBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/user/perl-sub-quote/APKBUILD b/user/perl-sub-quote/APKBUILD
new file mode 100644
index 000000000..778b7f793
--- /dev/null
+++ b/user/perl-sub-quote/APKBUILD
@@ -0,0 +1,34 @@
+# Contributor: Dan Theisen <djt@hxx.in>
+# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
+pkgname=perl-sub-quote
+pkgver=2.005001
+pkgrel=0
+pkgdesc="Efficient generation of subroutines via string eval"
+url="https://metacpan.org/release/Sub-Quote"
+arch="noarch"
+license="Artistic-1.0-Perl AND GPL-2.0"
+depends="perl"
+makedepends="perl-dev perl-test-fatal"
+install=""
+subpackages="$pkgname-doc"
+source="https://cpan.metacpan.org/authors/id/H/HA/HAARG/Sub-Quote-$pkgver.tar.gz"
+builddir="$srcdir/Sub-Quote-$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="3c32348c8ac6a8831faf75b084a6108657a3cfc0841fda8d8a182c4ca38c88f800bc60a01df07a2010b9a877e120fc46720f17f11092de5e97f40c36854ba24c Sub-Quote-2.005001.tar.gz"