From 0c7784f96a6fbfb9080294c74a7985c2d7b8fdfc Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Mon, 1 Oct 2018 23:20:14 +0000 Subject: user/perl-test-trap: new package --- user/perl-test-trap/APKBUILD | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 user/perl-test-trap/APKBUILD (limited to 'user') diff --git a/user/perl-test-trap/APKBUILD b/user/perl-test-trap/APKBUILD new file mode 100644 index 000000000..c230f6f23 --- /dev/null +++ b/user/perl-test-trap/APKBUILD @@ -0,0 +1,33 @@ +# Contributor: A. Wilcox +# Maintainer: A. Wilcox +pkgname=perl-test-trap +pkgver=0.3.3 +pkgrel=0 +pkgdesc="Trap Perl exit codes, exceptions, and output" +url="https://metacpan.org/release/Test-Trap" +arch="noarch" +license="Artistic-1.0-Perl" +depends="perl-data-dump" +makedepends="perl-dev" +subpackages="$pkgname-doc" +source="https://cpan.metacpan.org/authors/id/E/EB/EBHANSSEN/Test-Trap-v$pkgver.tar.gz" +builddir="$srcdir/Test-Trap-v$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="3a79bb0e201f2c740ea87baffda29141fc41e29b310bc9291da0e1cac0cf7f62a8c5cc70b94b68542cac7d6844d76c7fc1d3bbb91d86f8ba26a489d39883dd1e Test-Trap-v0.3.3.tar.gz" -- cgit v1.2.3-70-g09d2