1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-16 04:35:13 +03:00
aports/testing/perl-syntax-keyword-try/APKBUILD

36 lines
1.1 KiB
Text

# Automatically generated by apkbuild-cpan, template 3
# Contributor: rubicon <rubicon@mailo.com>
# Maintainer: rubicon <rubicon@mailo.com>
pkgname=perl-syntax-keyword-try
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Syntax-Keyword-Try
pkgver=0.27
pkgrel=1
pkgdesc="try/catch/finally syntax for perl"
url="https://metacpan.org/release/Syntax-Keyword-Try/"
arch="all"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-xs-parse-keyword"
makedepends="perl-dev perl-xs-parse-keyword perl-module-build perl-module-build"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/P/PE/PEVANS/Syntax-Keyword-Try-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
build() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
perl Build.PL --installdirs=vendor
./Build
}
check() {
./Build test
}
package() {
./Build install --destdir="$pkgdir"
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
sha512sums="
794a8df77bfa255b83deb7004ca2a70e5f9ec76e6009897101a20c11e8969f4238bed578de5fb510590730be7dfb8b2d1431f8955863f217f7fc5a639e2f2e3b Syntax-Keyword-Try-0.27.tar.gz
"