summaryrefslogtreecommitdiff
path: root/user/perl-syntax-keyword-try/APKBUILD
diff options
context:
space:
mode:
authorSíle Ekaterin Liszka <sheila@vulpine.house>2022-05-05 00:04:21 +0000
committerZach van Rijn <me@zv.io>2022-10-21 18:33:58 -0500
commit5b16a28e29f1d18bb1b3a960b89648396aabce84 (patch)
tree435ed88409d3bc69e9dda4d5d222d22cda86cab5 /user/perl-syntax-keyword-try/APKBUILD
parent46ea70efd8459d8895178c7eefe92be242caec7b (diff)
downloadpackages-5b16a28e29f1d18bb1b3a960b89648396aabce84.tar.gz
packages-5b16a28e29f1d18bb1b3a960b89648396aabce84.tar.bz2
packages-5b16a28e29f1d18bb1b3a960b89648396aabce84.tar.xz
packages-5b16a28e29f1d18bb1b3a960b89648396aabce84.zip
user/perl-syntax-keyword-try: new package
Diffstat (limited to 'user/perl-syntax-keyword-try/APKBUILD')
-rw-r--r--user/perl-syntax-keyword-try/APKBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/user/perl-syntax-keyword-try/APKBUILD b/user/perl-syntax-keyword-try/APKBUILD
new file mode 100644
index 000000000..fbc3067ee
--- /dev/null
+++ b/user/perl-syntax-keyword-try/APKBUILD
@@ -0,0 +1,35 @@
+# Contributor: Síle Ekaterin Liszka <sheila@vulpine.house>
+# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
+pkgname=perl-syntax-keyword-try
+_pkgreal=Syntax-Keyword-Try
+_author=PEVANS
+_au=${_author%%"${_author#??}"}
+_a=${_author%%"${_author#?}"}
+pkgver=0.27
+pkgrel=0
+pkgdesc="An implementation of try/catch/finally for Perl"
+url="https://metacpan.org/pod/Syntax::Keyword::Try"
+arch="all"
+license="GPL-1.0+ OR Artistic-1.0-Perl"
+depends="perl"
+checkdepends=""
+makedepends="perl-dev perl-module-build perl-xs-parse-keyword"
+subpackages="$pkgname-doc"
+source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgreal-$pkgver"
+
+build() {
+ perl Build.PL --destdir="$pkgdir" --prefix="/usr" --installdirs="vendor"
+ ./Build
+}
+
+check() {
+ ./Build test
+}
+
+package() {
+ ./Build install
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+sha512sums="794a8df77bfa255b83deb7004ca2a70e5f9ec76e6009897101a20c11e8969f4238bed578de5fb510590730be7dfb8b2d1431f8955863f217f7fc5a639e2f2e3b Syntax-Keyword-Try-0.27.tar.gz"