diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-11-17 23:41:08 +0000 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-11-17 23:41:08 +0000 |
commit | e3d75e427bc30bcb6107d4d3981c4fc131616287 (patch) | |
tree | d1fae21091c9c1af8edb0f1f74e5ce67441cff1b /user/perl-throwable | |
parent | 339a26e134031c4d35d5bfb55274776a3492ee05 (diff) | |
download | packages-e3d75e427bc30bcb6107d4d3981c4fc131616287.tar.gz packages-e3d75e427bc30bcb6107d4d3981c4fc131616287.tar.bz2 packages-e3d75e427bc30bcb6107d4d3981c4fc131616287.tar.xz packages-e3d75e427bc30bcb6107d4d3981c4fc131616287.zip |
user/perl-throwable: new package
Diffstat (limited to 'user/perl-throwable')
-rw-r--r-- | user/perl-throwable/APKBUILD | 34 |
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" |