diff options
-rw-r--r-- | user/perl-feature-compat-try/APKBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/user/perl-feature-compat-try/APKBUILD b/user/perl-feature-compat-try/APKBUILD new file mode 100644 index 000000000..9bb0f233b --- /dev/null +++ b/user/perl-feature-compat-try/APKBUILD @@ -0,0 +1,35 @@ +# Contributor: Síle Ekaterin Liszka <sheila@vulpine.house> +# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house> +pkgname=perl-feature-compat-try +_pkgreal=Feature-Compat-Try +_author=PEVANS +_au=${_author%%"${_author#??}"} +_a=${_author%%"${_author#?}"} +pkgver=0.05 +pkgrel=0 +pkgdesc="An implementation of try/catch for Perl" +url="https://metacpan.org/pod/Feature::Compat::Try" +arch="noarch" +license="GPL-1.0+ OR Artistic-1.0-Perl" +depends="perl" +checkdepends="perl-xs-parse-keyword" +makedepends="perl-module-build perl-syntax-keyword-try" +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="bf2c87bc29509e902ea4e27a22162efc58e93452a06483a19e17b70ee6db3e2407494209708dc84f2ef9080a91c374870de100cc42038683a4ae7891b07ab683 Feature-Compat-Try-0.05.tar.gz" |