aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/perl-datetime-timezone/APKBUILD27
1 files changed, 14 insertions, 13 deletions
diff --git a/main/perl-datetime-timezone/APKBUILD b/main/perl-datetime-timezone/APKBUILD
index c117d32eca..84cc2e8faf 100644
--- a/main/perl-datetime-timezone/APKBUILD
+++ b/main/perl-datetime-timezone/APKBUILD
@@ -3,39 +3,40 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-datetime-timezone
_pkgreal=DateTime-TimeZone
-pkgver=1.95
+pkgver=2.06
pkgrel=0
pkgdesc="Time zone object base class and factory"
url="http://search.cpan.org/dist/DateTime-TimeZone/"
arch="noarch"
license="GPL PerlArtistic"
-cpandepends="perl-params-validate perl-class-singleton perl-class-load perl-list-allutils"
-cpanmakedepends=" perl-test-fatal perl-test-output perl-test-requires "
+cpandepends="perl-class-singleton perl-try-tiny perl-specio perl-params-validationcompiler perl-module-runtime perl-namespace-autoclean"
+cpanmakedepends=" perl-test-fatal perl-test-requires "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
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"
- export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ default_prepare || return 1
+
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}
build() {
- cd "$_builddir"
- export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make && make test
}
package() {
- cd "$_builddir"
+ cd "$builddir"
make DESTDIR="$pkgdir" install || return 1
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
-md5sums="9abc657f20ae1cc77651f0fc69cbe36b DateTime-TimeZone-1.95.tar.gz"
-sha256sums="de2b1888718c7a0383060f250589b6ea36fa7afa2be9c4e1b06d29e05b25d4f1 DateTime-TimeZone-1.95.tar.gz"
-sha512sums="50bc594c6626130a202bb8f3da2a12e5ea425e2960b79f2e634699988120ace7767fa03aa41ddaf70769b875d836ffa5b4b5c689d420c2cd90f2d883da05b451 DateTime-TimeZone-1.95.tar.gz"
+md5sums="b24832c5dcf43e132e829c1cdc1fa19c DateTime-TimeZone-2.06.tar.gz"
+sha256sums="9c51dd5ac957a43732b4a8d5cf7529e5a6b99ca86b447164cab003b190a8a8a6 DateTime-TimeZone-2.06.tar.gz"
+sha512sums="631ce4ef9031bb4daf413e4132f0f99fcad6d2addd76eb4c636ccfc4163f8678c189594062f7544539b9ce8fe8bd867a43d4d30c6ed6c86b4a561ad0ce800d68 DateTime-TimeZone-2.06.tar.gz"