From 356283816994aaec363ec0dba67d360334c0a362 Mon Sep 17 00:00:00 2001 From: Dan Theisen Date: Tue, 25 Sep 2018 21:18:20 -0700 Subject: user/perl-sub-quote: new package --- user/perl-sub-quote/APKBUILD | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 user/perl-sub-quote/APKBUILD (limited to 'user/perl-sub-quote') 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 +# Maintainer: Adélie Perl Team +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" -- cgit v1.2.3-70-g09d2