summaryrefslogtreecommitdiff
path: root/user/perl-throwable/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'user/perl-throwable/APKBUILD')
-rw-r--r--user/perl-throwable/APKBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/user/perl-throwable/APKBUILD b/user/perl-throwable/APKBUILD
new file mode 100644
index 000000000..65c63e5bf
--- /dev/null
+++ b/user/perl-throwable/APKBUILD
@@ -0,0 +1,34 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
+pkgname=perl-throwable
+_pkgname=Throwable
+pkgver=0.200013
+pkgrel=0
+pkgdesc="Role for Perl classes that can be thrown"
+url="https://metacpan.org/release/Throwable"
+arch="noarch"
+license="Artistic-1.0-Perl OR GPL-2.0-only"
+depends="perl-devel-stacktrace perl-module-runtime perl-moo perl-sub-quote"
+makedepends="perl-dev"
+subpackages="$pkgname-doc"
+source="https://cpan.metacpan.org/authors/id/R/RJ/RJBS/Throwable-$pkgver.tar.gz"
+builddir="$srcdir/Throwable-$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="81ce73709c7c6a0160da42b00ce06ddf4cce79a6801df7aa90ddcce67efed6ace17b06171ac42b2737a98515c17ab46b5a3b7fd9e5bd3079b109a977dc6c0963 Throwable-0.200013.tar.gz"