# Automatically generated by apkbuild-cpan, template 2 # Contributor: Timo Teräs # Maintainer: Timo Teräs pkgname=perl-signal-mask _pkgreal=Signal-Mask pkgver=0.008 pkgrel=3 pkgdesc="Signal masks made easy" url="https://metacpan.org/release/Signal-Mask/" arch="noarch" license="GPL-1.0-or-later OR Artistic-1.0-Perl" depends="perl perl-ipc-signal" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/L/LE/LEONT/$_pkgreal-$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-$pkgver" prepare() { default_prepare export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor } build() { export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') make } package() { make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } check() { export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') make test } sha512sums="d78867778f24b844d0795e0fa14245346f69995a00dab2c46e240f807c9912473a37c63451a5528a92b41659409b7d6229779190c1566363c884a15560a7abf3 Signal-Mask-0.008.tar.gz"