aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-class-factory-util
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2017-12-06 12:11:53 +0000
committerRoberto Oliveira <robertoguimaraes8@gmail.com>2017-12-06 12:18:06 +0000
commit5fcf9eb2802c57bb047905e3047d391142e52041 (patch)
treecda92d76381d7760edf5ae98c75650d62aca76a9 /community/perl-class-factory-util
parente5ab1fc88b1ff6b7c01adbb6dccf39b70f6cc16d (diff)
downloadaports-5fcf9eb2802c57bb047905e3047d391142e52041.tar.bz2
aports-5fcf9eb2802c57bb047905e3047d391142e52041.tar.xz
community/perl-c*: 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-class-factory-util')
-rw-r--r--community/perl-class-factory-util/APKBUILD15
1 files changed, 9 insertions, 6 deletions
diff --git a/community/perl-class-factory-util/APKBUILD b/community/perl-class-factory-util/APKBUILD
index 89b6fe6f33..55e1c74ed3 100644
--- a/community/perl-class-factory-util/APKBUILD
+++ b/community/perl-class-factory-util/APKBUILD
@@ -4,7 +4,7 @@
pkgname=perl-class-factory-util
_pkgreal=Class-Factory-Util
pkgver=1.7
-pkgrel=0
+pkgrel=1
pkgdesc="Perl module for Class-Factory-Util"
url="http://search.cpan.org/dist/Class-Factory-Util/"
arch="noarch"
@@ -18,7 +18,7 @@ source="http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/$_pkgreal-$pkgver.ta
builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
- default_prepare || return 1
+ default_prepare
cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
@@ -28,15 +28,18 @@ prepare() {
build() {
cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
- make && make test
+ make
+}
+
+check() {
+ cd "$builddir"
+ make test
}
package() {
cd "$builddir"
- make DESTDIR="$pkgdir" install || return 1
+ make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
-md5sums="aebd79da361b676a7ecd3245fc3d1b3f Class-Factory-Util-1.7.tar.gz"
-sha256sums="6c516b445b44f87363fb3a148431d31e9ecb5e6f21fb6481c89b2406b6692e26 Class-Factory-Util-1.7.tar.gz"
sha512sums="8b8af36f1100805a9f59bd8745bc41455ebc20af9ff9cedd8a36370f66e0fb63a761918ae4f268d5546aeeecdd4ca7de448aca36e84f27b8f0932f34db68982e Class-Factory-Util-1.7.tar.gz"