aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-class-methodmaker/APKBUILD
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2017-11-23 00:19:55 +0000
committerRoberto Oliveira <robertoguimaraes8@gmail.com>2017-11-23 00:19:55 +0000
commit7dc6a380408d0d5a9ba9cb36522c869d11c5fb72 (patch)
tree7720a35ae5af0f4521f140a4d357e4221ca13e52 /community/perl-class-methodmaker/APKBUILD
parent7098090313c1681efd53ec6777ac491e4ffa6fe0 (diff)
downloadaports-7dc6a380408d0d5a9ba9cb36522c869d11c5fb72.tar.gz
aports-7dc6a380408d0d5a9ba9cb36522c869d11c5fb72.tar.bz2
aports-7dc6a380408d0d5a9ba9cb36522c869d11c5fb72.tar.xz
community/perl-class-methodmaker: modernize and add check
Diffstat (limited to 'community/perl-class-methodmaker/APKBUILD')
-rw-r--r--community/perl-class-methodmaker/APKBUILD30
1 files changed, 12 insertions, 18 deletions
diff --git a/community/perl-class-methodmaker/APKBUILD b/community/perl-class-methodmaker/APKBUILD
index 98b9bbdc6d..159f8288c0 100644
--- a/community/perl-class-methodmaker/APKBUILD
+++ b/community/perl-class-methodmaker/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-class-methodmaker
pkgver=2.24
-pkgrel=1
+pkgrel=2
pkgdesc="Create generic class methods"
url="http://search.cpan.org/dist/Class-MethodMaker"
arch="all"
@@ -14,29 +14,23 @@ install=""
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/S/SC/SCHWIGON/class-methodmaker/Class-MethodMaker-$pkgver.tar.gz"
-_builddir="$srcdir"/Class-MethodMaker-$pkgver
-prepare() {
- local i
- cd "$_builddir"
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
-}
+builddir="$srcdir/Class-MethodMaker-$pkgver"
build() {
- cd "$_builddir"
- PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
- make || return 1
+ cd "$builddir"
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ make
+}
+
+check() {
+ cd "$builddir"
+ make test
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
-md5sums="6fac1ed1fea8a4e42d36a4d07c8bfa09 Class-MethodMaker-2.24.tar.gz"
-sha256sums="5eef58ccb27ebd01bcde5b14bcc553b5347a0699e5c3e921c7780c3526890328 Class-MethodMaker-2.24.tar.gz"
sha512sums="d78f89df41d5c566dee74d30ff1b71488e9510639e795dd2f21e95e0516b039d15dd6743342cb28841e0fc698f64b3b3f349b5da788220598dff6ad95225ae0c Class-MethodMaker-2.24.tar.gz"