# Automatically generated by apkbuild-cpan, template 4
# Contributor: rubicon <rubicon@mailo.com>
# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=perl-syntax-keyword-try
pkgver=0.30
pkgrel=0
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Syntax-Keyword-Try
pkgdesc="C<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-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 \
		--create_packlist=0
	./Build
}

check() {
	./Build test
}

package() {
	./Build install --destdir="$pkgdir"
}

sha512sums="
dbabccdcf973d4ba0bf32e0499898b16260b8b8dede2abd7bc33a4cdfdd1da0816cd5f02d55f75eae2cea2381af2fd7fbcf5758ff5cdba067fe3ba7f535c7d20  Syntax-Keyword-Try-0.30.tar.gz
"
