aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-extutils-libbuilder/APKBUILD
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2017-11-23 17:27:01 +0000
committerRoberto Oliveira <robertoguimaraes8@gmail.com>2017-11-23 17:27:03 +0000
commit62750af0fedc04e43d6393aecd7d3d440a2ea2c5 (patch)
tree3acb0a814ae12a564b3df640e66e7fd66da12a83 /community/perl-extutils-libbuilder/APKBUILD
parent826feb495ee579cc205840c86feb60a363cd72ff (diff)
downloadaports-62750af0fedc04e43d6393aecd7d3d440a2ea2c5.tar.bz2
aports-62750af0fedc04e43d6393aecd7d3d440a2ea2c5.tar.xz
community/perl-[e-f]*: 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-extutils-libbuilder/APKBUILD')
-rw-r--r--community/perl-extutils-libbuilder/APKBUILD20
1 files changed, 12 insertions, 8 deletions
diff --git a/community/perl-extutils-libbuilder/APKBUILD b/community/perl-extutils-libbuilder/APKBUILD
index f2d806468d..70ba7c51f0 100644
--- a/community/perl-extutils-libbuilder/APKBUILD
+++ b/community/perl-extutils-libbuilder/APKBUILD
@@ -4,7 +4,7 @@
pkgname=perl-extutils-libbuilder
_pkgreal=ExtUtils-LibBuilder
pkgver=0.08
-pkgrel=0
+pkgrel=1
pkgdesc="Perl module for ExtUtils-LibBuilder"
url="http://search.cpan.org/dist/ExtUtils-LibBuilder/"
arch="noarch"
@@ -18,28 +18,32 @@ source="http://search.cpan.org/CPAN/authors/id/A/AM/AMBS/$_pkgreal-$pkgver.tar.g
builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
- default_prepare || return 1
+ default_prepare
+
cd "$builddir"
if [ -e Build.PL ]; then
- perl Build.PL installdirs=vendor || return 1
+ perl Build.PL installdirs=vendor
else
- PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
fi
}
build() {
cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
- ./Build && perl ./Build test
+ ./Build
+}
+
+check() {
+ cd "$builddir"
+ ./Build test
}
package() {
cd "$builddir"
- ./Build install destdir="$pkgdir" || return 1
+ ./Build install destdir="$pkgdir"
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
-md5sums="8ffe9e9a3c2f916f40dc4f6aed237d33 ExtUtils-LibBuilder-0.08.tar.gz"
-sha256sums="c51171e06de53039f0bca1d97a6471ec37941ff59e8a3d1cb170ebdd2573b5d2 ExtUtils-LibBuilder-0.08.tar.gz"
sha512sums="c9cb95ff9ce3d30163e3e6e76adc03e164bddcef1fa58a068f6fc41e4be7289f06712457fba341244e6d37ec5976912920d44ac02ff6c9a2cde368b102e5133e ExtUtils-LibBuilder-0.08.tar.gz"