aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2018-07-15 18:57:11 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2018-07-16 11:03:01 +0000
commit705d778b08c2b9032f998e53c3389742fcf5e41e (patch)
treeaa909264611a969a0ff54a0805605a0c919120e8
parenta567bbd2f917a76c3373a51d3981b7de58260ecf (diff)
downloadaports-705d778b08c2b9032f998e53c3389742fcf5e41e.tar.gz
aports-705d778b08c2b9032f998e53c3389742fcf5e41e.tar.bz2
aports-705d778b08c2b9032f998e53c3389742fcf5e41e.tar.xz
main/perl-params-validate: upgrade to 1.29 and modernize
-rw-r--r--main/perl-params-validate/APKBUILD23
1 files changed, 14 insertions, 9 deletions
diff --git a/main/perl-params-validate/APKBUILD b/main/perl-params-validate/APKBUILD
index 6bcaec1bb8..e4281e1ec3 100644
--- a/main/perl-params-validate/APKBUILD
+++ b/main/perl-params-validate/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-params-validate
_pkgreal=Params-Validate
-pkgver=1.28
+pkgver=1.29
pkgrel=0
pkgdesc="Validate method/function parameters"
url="http://search.cpan.org/dist/Params-Validate/"
@@ -15,24 +15,29 @@ makedepends="perl-dev $cpanmakedepends perl-module-build"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/$_pkgreal-$pkgver.tar.gz"
-_builddir="$srcdir/$_pkgreal-$pkgver"
+builddir="$srcdir/$_pkgreal-$pkgver"
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
+}
+
+check() {
+ cd "$builddir"
+ ./Build test
}
package() {
- cd "$_builddir"
- ./Build install destdir="$pkgdir" || return 1
+ cd "$builddir"
+ ./Build install destdir="$pkgdir"
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
-sha512sums="e2ebf320c84120090224c5a22f313e11ff7317b433a82e20f9aa6706832e375ea31520d4d1ebcbd4aac68063c6c1addcea6c56002678a87cfabc9e4f4b4fad0d Params-Validate-1.28.tar.gz"
+sha512sums="afa887d1ce60d38b82cbf3ad88fb892f473e0fa45db528b68e66bbb800058af453180cc96afddae56a2cdad8ec531a587e7aac36b6869c489caa6dd36a57a385 Params-Validate-1.29.tar.gz"