From 5b16a28e29f1d18bb1b3a960b89648396aabce84 Mon Sep 17 00:00:00 2001 From: Síle Ekaterin Liszka Date: Thu, 5 May 2022 00:04:21 +0000 Subject: user/perl-syntax-keyword-try: new package --- user/perl-syntax-keyword-try/APKBUILD | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 user/perl-syntax-keyword-try/APKBUILD (limited to 'user/perl-syntax-keyword-try') 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 +# Maintainer: Síle Ekaterin Liszka +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" -- cgit v1.2.3-70-g09d2