aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2017-07-17 07:00:49 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2017-07-17 11:52:34 +0000
commitb33d8f64dfde5b07d10b8f758f854f0e9edc06ef (patch)
treefcb2b3d1ed9dedac29676fa60528b46fb8a2ec87
parent9d448495a20537de2a509508fde8030813be5e3c (diff)
downloadaports-b33d8f64dfde5b07d10b8f758f854f0e9edc06ef.tar.bz2
aports-b33d8f64dfde5b07d10b8f758f854f0e9edc06ef.tar.xz
community/perl-module-runtime: upgrade to 0.015, modernize APKBUILD, added check()
-rw-r--r--community/perl-module-runtime/APKBUILD23
1 files changed, 13 insertions, 10 deletions
diff --git a/community/perl-module-runtime/APKBUILD b/community/perl-module-runtime/APKBUILD
index bab759cbad..13891688b1 100644
--- a/community/perl-module-runtime/APKBUILD
+++ b/community/perl-module-runtime/APKBUILD
@@ -3,7 +3,7 @@
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-module-runtime
_pkgreal=Module-Runtime
-pkgver=0.014
+pkgver=0.015
pkgrel=0
pkgdesc="runtime module handling"
url="http://search.cpan.org/dist/Module-Runtime/"
@@ -16,26 +16,29 @@ makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/Z/ZE/ZEFRAM/$_pkgreal-$pkgver.tar.gz"
-_builddir="$srcdir/$_pkgreal-$pkgver"
+builddir="$srcdir/$_pkgreal-$pkgver"
+
+check() {
+ cd "$builddir"
+ ./Build test
+}
prepare() {
- cd "$_builddir"
+ cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
- perl Build.PL installdirs=vendor || return 1
+ perl Build.PL installdirs=vendor
}
build() {
- cd "$_builddir"
+ cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
- ./Build && ./Build test
+ ./Build
}
package() {
- cd "$_builddir"
+ cd "$builddir"
./Build install destdir="$pkgdir" || return 1
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
-md5sums="a6597bc25536a30476f0d75b64d35734 Module-Runtime-0.014.tar.gz"
-sha256sums="4c44fe0ea255a9fd00741ee545063f6692d2a28e7ef2fbaad1b24a92803362a4 Module-Runtime-0.014.tar.gz"
-sha512sums="5431d9aeb092bb357bafed4e4cf216e9eda4bbbdd0c27547a1729adbb2f6f5a114ac25580a814f2d07844d6b742b9df3ca8d5972668bcacab2f791d617c1d32b Module-Runtime-0.014.tar.gz"
+sha512sums="13f85128130f1543d6be86c002b5d093ed530ab069a7fdf2c109317a234a800611c43e8ff7349f43eb35e0169f80f677a117277a70aa138f0f147d9cf8fb16d0 Module-Runtime-0.015.tar.gz"