aboutsummaryrefslogtreecommitdiffstats
path: root/community
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2017-05-19 09:30:05 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2017-05-19 09:30:10 +0000
commita366bed79017f4b8ff525a3f5d480091fbcd9c9b (patch)
tree64220083c77335f8e2cc0c5d96995e84941ecc91 /community
parent8d50f9a0e73aa6c716a5f6a1cecb5a8606abc0d3 (diff)
downloadaports-a366bed79017f4b8ff525a3f5d480091fbcd9c9b.tar.bz2
aports-a366bed79017f4b8ff525a3f5d480091fbcd9c9b.tar.xz
community/perl-mime-base32: upgrade to 1.303, improved APKBUILD
Diffstat (limited to 'community')
-rw-r--r--community/perl-mime-base32/APKBUILD31
1 files changed, 16 insertions, 15 deletions
diff --git a/community/perl-mime-base32/APKBUILD b/community/perl-mime-base32/APKBUILD
index 5839919028..7ffa928aec 100644
--- a/community/perl-mime-base32/APKBUILD
+++ b/community/perl-mime-base32/APKBUILD
@@ -3,8 +3,8 @@
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-mime-base32
_pkgreal=MIME-Base32
-pkgver=1.02a
-_pkgver=1.02
+pkgver=1.303
+_pkgver=1.303
pkgrel=0
pkgdesc="Perl module for MIME-Base32"
url="http://search.cpan.org/dist/MIME-Base32/"
@@ -15,28 +15,29 @@ cpanmakedepends=""
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
-source="http://search.cpan.org/CPAN/authors/id/D/DA/DANPEDER/$_pkgreal-$pkgver.tar.gz"
+source="http://search.cpan.org/CPAN/authors/id/R/RE/REHSACK/$_pkgreal-$pkgver.tar.gz"
-_builddir="$srcdir"/$_pkgreal-$_pkgver
+builddir="$srcdir"/$_pkgreal-$_pkgver
+
+check() {
+ cd "$builddir"
+ make test
+}
prepare() {
- cd "$_builddir"
- if [ -e Build.PL ]; then
- perl Build.PL installdirs=vendor || return 1
- else
- PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
- fi
+ cd "$builddir"
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}
build() {
- cd "$_builddir"
- make && make test
+ cd "$builddir"
+ make
}
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="7bff096e1a1289c9b101130540a0b9e3 MIME-Base32-1.02a.tar.gz"
+sha512sums="48c2541d08976fba154816d4f803cc20d8d51f8a7e4084cd85e23f7559868611adcce133f7dd8728cb21bbec67c325a99e68e36149b4ae3bfae97a6e57f4b806 MIME-Base32-1.303.tar.gz"