diff options
Diffstat (limited to 'user/perl-eval-closure')
-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" |