summaryrefslogtreecommitdiff
path: root/system/perl-try-tiny
diff options
context:
space:
mode:
Diffstat (limited to 'system/perl-try-tiny')
-rw-r--r--system/perl-try-tiny/APKBUILD42
1 files changed, 42 insertions, 0 deletions
diff --git a/system/perl-try-tiny/APKBUILD b/system/perl-try-tiny/APKBUILD
new file mode 100644
index 000000000..fb93a3117
--- /dev/null
+++ b/system/perl-try-tiny/APKBUILD
@@ -0,0 +1,42 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor: Kiyoshi Aman <kiyoshi.aman@gmail.com>
+# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
+pkgname=perl-try-tiny
+_pkgreal=Try-Tiny
+pkgver=0.30
+pkgrel=0
+pkgdesc="Minimal Perl try/catch with proper environment preservation"
+url="http://search.cpan.org/dist/Try-Tiny/"
+arch="noarch"
+license="GPL-2.0-only OR Artistic-1.0-Perl"
+cpandepends=""
+cpanmakedepends=""
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/$_pkgreal-$pkgver.tar.gz"
+
+builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ cd "$builddir"
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+}
+
+build() {
+ cd "$builddir"
+ make
+}
+
+check() {
+ cd "$builddir"
+ make test
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+sha512sums="f523736ab0504ca0f7150be312e62988c4b9473a9e8469b0746dc8364945e2922c64c92e95e6c2b5792c5d6399dabea3d00aa45c065155b95519d5658a07216c Try-Tiny-0.30.tar.gz"