aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-proc-waitstat
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2017-11-05 13:07:06 +0000
committerRoberto Oliveira <robertoguimaraes8@gmail.com>2017-11-05 13:31:30 +0000
commit3ce302210e5b0a911d9657215d691b8fe4e5b9b5 (patch)
tree778ae8d17fb65f669c60b8d5eeeb3aa43bb87d58 /community/perl-proc-waitstat
parenta439676586c0e22b38559c0cfb70d81123930b3a (diff)
downloadaports-3ce302210e5b0a911d9657215d691b8fe4e5b9b5.tar.bz2
aports-3ce302210e5b0a911d9657215d691b8fe4e5b9b5.tar.xz
community/perl-[n-s]*: modernize APKBUILD
Changes: - Move tests to check() - Remove return 1 - rename _builddir to builddir - add missing default_prepare in prepare()
Diffstat (limited to 'community/perl-proc-waitstat')
-rw-r--r--community/perl-proc-waitstat/APKBUILD14
1 files changed, 9 insertions, 5 deletions
diff --git a/community/perl-proc-waitstat/APKBUILD b/community/perl-proc-waitstat/APKBUILD
index 97cb915ccd..604cd49038 100644
--- a/community/perl-proc-waitstat/APKBUILD
+++ b/community/perl-proc-waitstat/APKBUILD
@@ -3,7 +3,7 @@
pkgname=perl-proc-waitstat
_pkgreal=Proc-WaitStat
pkgver=1.00
-pkgrel=1
+pkgrel=2
pkgdesc="Perl module interpret and act on wait() status values"
url="http://search.cpan.org/dist/Proc-WaitStat/"
arch="noarch"
@@ -16,8 +16,9 @@ source="http://search.cpan.org/CPAN/authors/id/R/RO/ROSCH/$_pkgreal-$pkgver.tar.
builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
+ default_prepare
+
cd "$builddir"
- default_prepare || return 1
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}
@@ -25,7 +26,12 @@ prepare() {
build() {
cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
- make && make test
+ make
+}
+
+check() {
+ cd "$builddir"
+ make test
}
package() {
@@ -36,6 +42,4 @@ package() {
rm -fr "$pkgdir"/usr/share/perl5
}
-md5sums="b911bd579b6b142391b21de1efa30c95 Proc-WaitStat-1.00.tar.gz"
-sha256sums="d07563f5e787909d16e7390241e877f49ab739b1de9d0e2ea1a41bd0bf4474bc Proc-WaitStat-1.00.tar.gz"
sha512sums="7abc1c3771ec560e6138cc7709ca4527a34c897067e13afd57d096d664d6d11a1d80898a955404d8b583972eae8c80689fd8421adaee9bed2601e47afe9ef235 Proc-WaitStat-1.00.tar.gz"