From 62faa16d4751fdcd5a858d26e5666dd8ae8f0285 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Ter=C3=A4s?= Date: Wed, 12 Jul 2017 09:52:16 +0300 Subject: community/perl-signal-mask: new aport Signal masks made easy http://search.cpan.org/dist/Signal-Mask/ --- community/perl-signal-mask/APKBUILD | 48 +++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 community/perl-signal-mask/APKBUILD (limited to 'community/perl-signal-mask') diff --git a/community/perl-signal-mask/APKBUILD b/community/perl-signal-mask/APKBUILD new file mode 100644 index 0000000000..c14911dd01 --- /dev/null +++ b/community/perl-signal-mask/APKBUILD @@ -0,0 +1,48 @@ +# 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=0 +pkgdesc="Signal masks made easy" +url="http://search.cpan.org/dist/Signal-Mask/" +arch="noarch" +license="GPL PerlArtistic" +cpandepends="perl-ipc-signal" +cpanmakedepends="" +cpancheckdepends="" +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +checkdepends="$cpancheckdepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/L/LE/LEONT/$_pkgreal-$pkgver.tar.gz" +builddir="$srcdir/$_pkgreal-$pkgver" + +prepare() { + default_prepare + + cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor +} + +build() { + cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + make +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +check() { + cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + make test +} + +sha512sums="d78867778f24b844d0795e0fa14245346f69995a00dab2c46e240f807c9912473a37c63451a5528a92b41659409b7d6229779190c1566363c884a15560a7abf3 Signal-Mask-0.008.tar.gz" -- cgit v1.2.3