diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-10-01 22:01:28 +0000 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-10-01 22:01:28 +0000 |
commit | cb59c7f136503ef99c9ce760dc544d8971d4e683 (patch) | |
tree | 6531426135d4ef9de4a4c8d87fadd48d7d27bfa9 /user/perl-eval-closure/APKBUILD | |
parent | e01a2d1bd57eb8031396f99b347bf8fa7f041df3 (diff) | |
download | packages-cb59c7f136503ef99c9ce760dc544d8971d4e683.tar.gz packages-cb59c7f136503ef99c9ce760dc544d8971d4e683.tar.bz2 packages-cb59c7f136503ef99c9ce760dc544d8971d4e683.tar.xz packages-cb59c7f136503ef99c9ce760dc544d8971d4e683.zip |
user/perl-eval-closure: new package
Diffstat (limited to 'user/perl-eval-closure/APKBUILD')
-rw-r--r-- | user/perl-eval-closure/APKBUILD | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/user/perl-eval-closure/APKBUILD b/user/perl-eval-closure/APKBUILD new file mode 100644 index 000000000..93d0f376e --- /dev/null +++ b/user/perl-eval-closure/APKBUILD @@ -0,0 +1,34 @@ +# Contributor: A. Wilcox <awilfox@adelielinux.org> +# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org> +pkgname=perl-eval-closure +pkgver=0.14 +pkgrel=0 +pkgdesc="Safely and cleanly create Perl closures using string eval" +url="https://metacpan.org/release/Eval-Closure" +arch="noarch" +license="Artistic-1.0-Perl" +depends="" +makedepends="perl-dev" +checkdepends="perl-test-fatal perl-test-requires" +subpackages="$pkgname-doc" +source="https://cpan.metacpan.org/authors/id/D/DO/DOY/Eval-Closure-$pkgver.tar.gz" +builddir="$srcdir/Eval-Closure-$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="fc55206bd39c4cb39360d06b6f39a65743f34b5e59d1a1ce99bf5831b9d88a03fb6dadf32fa9f0868e140fce719d53a7b13027f397cdd7f6ca05cc81277bdc08 Eval-Closure-0.14.tar.gz" |