summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-10-01 23:20:14 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-10-01 23:20:14 +0000
commit0c7784f96a6fbfb9080294c74a7985c2d7b8fdfc (patch)
treef33e0566e0cb90eaf5d1cbdf9579996c068bab7b
parenta691830f7bee520f2286efa99a823300edccd29d (diff)
downloadpackages-0c7784f96a6fbfb9080294c74a7985c2d7b8fdfc.tar.gz
packages-0c7784f96a6fbfb9080294c74a7985c2d7b8fdfc.tar.bz2
packages-0c7784f96a6fbfb9080294c74a7985c2d7b8fdfc.tar.xz
packages-0c7784f96a6fbfb9080294c74a7985c2d7b8fdfc.zip
user/perl-test-trap: new package
-rw-r--r--user/perl-test-trap/APKBUILD33
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"