aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--community/perl-ipc-signal/APKBUILD (renamed from unmaintained/perl-ipc-signal/APKBUILD)20
1 files changed, 8 insertions, 12 deletions
diff --git a/unmaintained/perl-ipc-signal/APKBUILD b/community/perl-ipc-signal/APKBUILD
index 53b67d8a91..05cc2bcdef 100644
--- a/unmaintained/perl-ipc-signal/APKBUILD
+++ b/community/perl-ipc-signal/APKBUILD
@@ -1,37 +1,33 @@
-# Automatically generated by apkbuild-cpan, template 1
# Contributor: Valery Kartel <valery.kartel@gmail.com>
-# Maintainer: Valery Kartel <valery.kartel@gmail.com>
+# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=perl-ipc-signal
_pkgreal=IPC-Signal
pkgver=1.00
-pkgrel=0
+pkgrel=1
pkgdesc="Perl module provides utility functions dealing with signals"
url="http://search.cpan.org/dist/IPC-Signal/"
arch="noarch"
license="GPL PerlArtistic"
-cpandepends=""
-cpanmakedepends=" "
-depends="$cpandepends"
-makedepends="perl-dev $cpanmakedepends"
+makedepends="perl-dev"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/R/RO/ROSCH/$_pkgreal-$pkgver.tar.gz"
-
-_builddir="$srcdir/$_pkgreal-$pkgver"
+builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
- cd "$_builddir"
+ cd "$builddir"
+ default_prepare || return 1
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}
build() {
- cd "$_builddir"
+ cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
make && make test
}
package() {
- cd "$_builddir"
+ cd "$builddir"
make DESTDIR="$pkgdir" install || return 1
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
mv "$pkgdir"/usr/share/perl5/vendor_perl/* "$pkgdir"/usr/lib/perl5/vendor_perl