aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2017-03-29 09:55:24 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2017-03-29 09:55:24 +0000
commit24fd52ea9d66b20b93fec80549192356033d828b (patch)
tree828132302fdd37c6d9600d766a6479b4c28b100a /main
parenta78aa7c8f5fc3f7253f450d5b032b564eb51757f (diff)
downloadaports-24fd52ea9d66b20b93fec80549192356033d828b.tar.bz2
aports-24fd52ea9d66b20b93fec80549192356033d828b.tar.xz
main/perl-mro-compat: upgrade to 0.13, modernize APKBUILD
Diffstat (limited to 'main')
-rw-r--r--main/perl-mro-compat/APKBUILD25
1 files changed, 14 insertions, 11 deletions
diff --git a/main/perl-mro-compat/APKBUILD b/main/perl-mro-compat/APKBUILD
index a2c9ea0561..a9e09e448c 100644
--- a/main/perl-mro-compat/APKBUILD
+++ b/main/perl-mro-compat/APKBUILD
@@ -3,7 +3,7 @@
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-mro-compat
_pkgreal=MRO-Compat
-pkgver=0.12
+pkgver=0.13
pkgrel=0
pkgdesc="mro::* interface compatibility for Perls < 5.9.5"
url="http://search.cpan.org/dist/MRO-Compat/"
@@ -14,26 +14,29 @@ cpanmakedepends=""
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
-source="http://search.cpan.org/CPAN/authors/id/B/BO/BOBTFISH/MRO-Compat-$pkgver.tar.gz"
+source="http://search.cpan.org/CPAN/authors/id/H/HA/HAARG/$_pkgreal-$pkgver.tar.gz"
-_builddir="$srcdir/$_pkgreal-$pkgver"
+builddir="$srcdir/$_pkgreal-$pkgver"
+
+check() {
+ cd "$builddir"
+ make test
+}
prepare() {
- cd "$_builddir"
+ 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="06d21a3baf3d578ff3d3e10621656530 MRO-Compat-0.12.tar.gz"
-sha256sums="bba5b93869aa537a3389949669d682f047d3014d53bc3a2d7209c6819e5015d6 MRO-Compat-0.12.tar.gz"
-sha512sums="428255bc7a7b73ed8005107109b2294e8f7cf0cbd1543431105ec638582cb32e4cc81f29b06ce90741c1ff656186259fc1a4105247f95fe977e6758c0ccca6ab MRO-Compat-0.12.tar.gz"
+sha512sums="3311c37c8fc73acaf68bae2b12315a448a87de8f756e817c967cf49b753cf218e8c762ecc44890297afd82193d71b2407060db0bc70720d228b31c0a30de10c1 MRO-Compat-0.13.tar.gz"