1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-16 12:45:18 +03:00
aports/testing/perl-syntax-keyword-defer/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-defer
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Syntax-Keyword-Defer
pkgver=0.08
pkgrel=0
pkgdesc="execute code when leaving a block"
url="https://metacpan.org/release/Syntax-Keyword-Defer/"
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-Defer-$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="
dd97a9222f79486b3a6efe91160f25f629ea190b3acd2592129f60ae9425dfb7c1bc73574870a68037cddc1de832fce49234fbf52299458a75795d575d68da30 Syntax-Keyword-Defer-0.08.tar.gz
"