diff options
Diffstat (limited to 'user/perl-test-trap/APKBUILD')
-rw-r--r-- | user/perl-test-trap/APKBUILD | 33 |
1 files changed, 33 insertions, 0 deletions
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 <awilfox@adelielinux.org> +# Maintainer: A. Wilcox <awilfox@adelielinux.org> +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" |