summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-11-17 23:41:08 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-11-17 23:41:08 +0000
commite3d75e427bc30bcb6107d4d3981c4fc131616287 (patch)
treed1fae21091c9c1af8edb0f1f74e5ce67441cff1b /user
parent339a26e134031c4d35d5bfb55274776a3492ee05 (diff)
downloadpackages-e3d75e427bc30bcb6107d4d3981c4fc131616287.tar.gz
packages-e3d75e427bc30bcb6107d4d3981c4fc131616287.tar.bz2
packages-e3d75e427bc30bcb6107d4d3981c4fc131616287.tar.xz
packages-e3d75e427bc30bcb6107d4d3981c4fc131616287.zip
user/perl-throwable: new package
Diffstat (limited to 'user')
-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"