From 20447916cbb13924b4ccd18265b615618ad0e4dd Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Wed, 30 May 2018 20:09:21 +0000 Subject: perl-datetime: update to 1.48 --- abs/core/perl_modules/perl-datetime/PKGBUILD | 45 +++++++++++++++------------- 1 file changed, 24 insertions(+), 21 deletions(-) diff --git a/abs/core/perl_modules/perl-datetime/PKGBUILD b/abs/core/perl_modules/perl-datetime/PKGBUILD index 839ff1c..e8d4895 100644 --- a/abs/core/perl_modules/perl-datetime/PKGBUILD +++ b/abs/core/perl_modules/perl-datetime/PKGBUILD @@ -1,37 +1,40 @@ -# $Id: PKGBUILD 71765 2012-06-02 10:29:58Z bluewind $ +# $Id$ # Maintainer: Sergej Pupykin # Contributor: François Charette pkgname=perl-datetime -pkgver=0.72 -pkgrel=2 +pkgver=1.48 +pkgrel=1 pkgdesc="A complete, easy to use date and time object" -arch=('i686' 'x86_64') +arch=('x86_64') url="http://search.cpan.org/dist/DateTime" license=('GPL' 'PerlArtistic') depends=('perl-datetime-timezone>=0.59' 'perl-datetime-locale>=0.41' - 'perl-params-validate>=0.76' 'perl-math-round') + 'perl-params-validate>=0.76' 'perl-math-round' + 'perl-namespace-autoclean' 'perl-specio' 'perl-eval-closure' + 'perl-params-validationcompiler') +makedepends=('perl-module-build') LC_NUMERIC=C provides=("perl-datetime=`printf %.4f $pkgver`") options=('!emptydirs') -source=(http://www.cpan.org/authors/id/D/DR/DROLSKY/DateTime-$pkgver.tar.gz) -md5sums=('f50b328919fe8bf2d2b16ca0df35c3f3') +source=(https://www.cpan.org/CPAN/authors/id/D/DR/DROLSKY/DateTime-$pkgver.tar.gz) +sha256sums=('5005446eabed6ac96c93e40d284987f0fd1bbfd41a1a7dd5e2abe646dfd68c3e') build() { - cd $srcdir/DateTime-$pkgver - perl Build.PL installdirs=vendor destdir="$pkgdir/" - ./Build + cd "$srcdir"/DateTime-$pkgver + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor + make } - -check() { - cd $srcdir/DateTime-$pkgver -# ./Build test - true -} - package() { - cd $srcdir/DateTime-$pkgver - ./Build install - find $pkgdir -name '.packlist' -delete - find $pkgdir -name '*.pod' -delete + cd "$srcdir"/DateTime-$pkgver + make install DESTDIR="$pkgdir" + find "$pkgdir" -name '.packlist' -delete + find "$pkgdir" -name '*.pod' -delete +# template start; name=perl-binary-module-dependency; version=1; +if [[ $(find "$pkgdir/usr/lib/perl5/" -name "*.so") ]]; then + _perlver_min=$(perl -e '$v = $^V->{version}; print $v->[0].".".($v->[1]);') + _perlver_max=$(perl -e '$v = $^V->{version}; print $v->[0].".".($v->[1]+1);') + depends+=("perl>=$_perlver_min" "perl<$_perlver_max") +fi +# template end; } -- cgit v0.12