From cb59c7f136503ef99c9ce760dc544d8971d4e683 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Mon, 1 Oct 2018 22:01:28 +0000 Subject: user/perl-eval-closure: new package --- user/perl-eval-closure/APKBUILD | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 user/perl-eval-closure/APKBUILD (limited to 'user/perl-eval-closure') 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 +# Maintainer: Adélie Perl Team +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" -- cgit v1.2.3-70-g09d2