diff options
author | Síle Ekaterin Liszka <sheila@vulpine.house> | 2022-05-05 00:04:21 +0000 |
---|---|---|
committer | Zach van Rijn <me@zv.io> | 2022-06-12 23:51:41 +0000 |
commit | af1fd1d745c0e1e966d79a5b13592454643b664d (patch) | |
tree | 559b49ecc382c55e97e3573cf5484cc45cca6db4 /user/perl-syntax-keyword-try/APKBUILD | |
parent | 05221d6f71a8af49863dfa5a1e0c0f588476536c (diff) | |
download | packages-af1fd1d745c0e1e966d79a5b13592454643b664d.tar.gz packages-af1fd1d745c0e1e966d79a5b13592454643b664d.tar.bz2 packages-af1fd1d745c0e1e966d79a5b13592454643b664d.tar.xz packages-af1fd1d745c0e1e966d79a5b13592454643b664d.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/APKBUILD | 35 |
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" |