mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 11:45:18 +03:00
36 lines
1.1 KiB
Text
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.07
|
|
pkgrel=1
|
|
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="
|
|
7924c1dc6270c6cdc7b6c9b3494ce5793fba2ad2e693aab6c45067d133162e2ac9688bf65f82d065c0bc4cdfad1fae026aedf2c1de2c503d1048b9f139bf4702 Syntax-Keyword-Defer-0.07.tar.gz
|
|
"
|