diff options
author | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-11-23 00:19:55 +0000 |
---|---|---|
committer | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-11-23 00:19:55 +0000 |
commit | 7dc6a380408d0d5a9ba9cb36522c869d11c5fb72 (patch) | |
tree | 7720a35ae5af0f4521f140a4d357e4221ca13e52 | |
parent | 7098090313c1681efd53ec6777ac491e4ffa6fe0 (diff) | |
download | alpine_aports-7dc6a380408d0d5a9ba9cb36522c869d11c5fb72.tar.bz2 alpine_aports-7dc6a380408d0d5a9ba9cb36522c869d11c5fb72.tar.xz alpine_aports-7dc6a380408d0d5a9ba9cb36522c869d11c5fb72.zip |
community/perl-class-methodmaker: modernize and add check
-rw-r--r-- | community/perl-class-methodmaker/APKBUILD | 30 |
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 @@ | |||
2 | # Maintainer: Francesco Colista <fcolista@alpinelinux.org> | 2 | # Maintainer: Francesco Colista <fcolista@alpinelinux.org> |
3 | pkgname=perl-class-methodmaker | 3 | pkgname=perl-class-methodmaker |
4 | pkgver=2.24 | 4 | pkgver=2.24 |
5 | pkgrel=1 | 5 | pkgrel=2 |
6 | pkgdesc="Create generic class methods" | 6 | pkgdesc="Create generic class methods" |
7 | url="http://search.cpan.org/dist/Class-MethodMaker" | 7 | url="http://search.cpan.org/dist/Class-MethodMaker" |
8 | arch="all" | 8 | arch="all" |
@@ -14,29 +14,23 @@ install="" | |||
14 | subpackages="$pkgname-doc" | 14 | subpackages="$pkgname-doc" |
15 | source="http://search.cpan.org/CPAN/authors/id/S/SC/SCHWIGON/class-methodmaker/Class-MethodMaker-$pkgver.tar.gz" | 15 | source="http://search.cpan.org/CPAN/authors/id/S/SC/SCHWIGON/class-methodmaker/Class-MethodMaker-$pkgver.tar.gz" |
16 | 16 | ||
17 | _builddir="$srcdir"/Class-MethodMaker-$pkgver | 17 | builddir="$srcdir/Class-MethodMaker-$pkgver" |
18 | prepare() { | ||
19 | local i | ||
20 | cd "$_builddir" | ||
21 | for i in $source; do | ||
22 | case $i in | ||
23 | *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; | ||
24 | esac | ||
25 | done | ||
26 | } | ||
27 | 18 | ||
28 | build() { | 19 | build() { |
29 | cd "$_builddir" | 20 | cd "$builddir" |
30 | PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 | 21 | PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor |
31 | make || return 1 | 22 | make |
23 | } | ||
24 | |||
25 | check() { | ||
26 | cd "$builddir" | ||
27 | make test | ||
32 | } | 28 | } |
33 | 29 | ||
34 | package() { | 30 | package() { |
35 | cd "$_builddir" | 31 | cd "$builddir" |
36 | make DESTDIR="$pkgdir" install || return 1 | 32 | make DESTDIR="$pkgdir" install |
37 | find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete | 33 | find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete |
38 | } | 34 | } |
39 | 35 | ||
40 | md5sums="6fac1ed1fea8a4e42d36a4d07c8bfa09 Class-MethodMaker-2.24.tar.gz" | ||
41 | sha256sums="5eef58ccb27ebd01bcde5b14bcc553b5347a0699e5c3e921c7780c3526890328 Class-MethodMaker-2.24.tar.gz" | ||
42 | sha512sums="d78f89df41d5c566dee74d30ff1b71488e9510639e795dd2f21e95e0516b039d15dd6743342cb28841e0fc698f64b3b3f349b5da788220598dff6ad95225ae0c Class-MethodMaker-2.24.tar.gz" | 36 | sha512sums="d78f89df41d5c566dee74d30ff1b71488e9510639e795dd2f21e95e0516b039d15dd6743342cb28841e0fc698f64b3b3f349b5da788220598dff6ad95225ae0c Class-MethodMaker-2.24.tar.gz" |