aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2017-07-12 09:52:16 +0300
committerTimo Teräs <timo.teras@iki.fi>2017-07-12 09:52:16 +0300
commit62faa16d4751fdcd5a858d26e5666dd8ae8f0285 (patch)
tree1e97b201569213c624643be897783b8c101062ba
parentd90eb9a3e0bec8ca137329857de54e3fd7d1aeaa (diff)
downloadaports-62faa16d4751fdcd5a858d26e5666dd8ae8f0285.tar.gz
aports-62faa16d4751fdcd5a858d26e5666dd8ae8f0285.tar.bz2
aports-62faa16d4751fdcd5a858d26e5666dd8ae8f0285.tar.xz
community/perl-signal-mask: new aport
Signal masks made easy http://search.cpan.org/dist/Signal-Mask/
-rw-r--r--community/perl-signal-mask/APKBUILD48
1 files changed, 48 insertions, 0 deletions
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 <timo.teras@iki.fi>
+# Maintainer: Timo Teräs <timo.teras@iki.fi>
+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"