aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-timedate/APKBUILD
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-01-17 12:01:27 +0100
committerLeo <thinkabit.ukim@gmail.com>2020-01-17 15:07:29 +0100
commitba562b51ba0a58ab09c2f32f45bb05348da786ed (patch)
tree7538e6cb36aed26fcd6f36da1b240c39350bdb23 /main/perl-timedate/APKBUILD
parent307d525aee92cbef757d48e28c40db41a711fd88 (diff)
downloadaports-ba562b51ba0a58ab09c2f32f45bb05348da786ed.tar.gz
aports-ba562b51ba0a58ab09c2f32f45bb05348da786ed.tar.bz2
aports-ba562b51ba0a58ab09c2f32f45bb05348da786ed.tar.xz
main/perl-timedate: upgrade to 2.31
Diffstat (limited to 'main/perl-timedate/APKBUILD')
-rw-r--r--main/perl-timedate/APKBUILD45
1 files changed, 22 insertions, 23 deletions
diff --git a/main/perl-timedate/APKBUILD b/main/perl-timedate/APKBUILD
index 591091622a..7dcf8e758d 100644
--- a/main/perl-timedate/APKBUILD
+++ b/main/perl-timedate/APKBUILD
@@ -3,41 +3,40 @@
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-timedate
_pkgreal=TimeDate
-pkgver=2.30
-pkgrel=1
-pkgdesc="unknown"
-url="http://search.cpan.org/dist/TimeDate/"
+pkgver=2.31
+pkgrel=0
+pkgdesc="Perl TimeDate module"
+url="https://metacpan.org/release/TimeDate"
arch="noarch"
-license="GPL PerlArtistic"
-cpandepends=""
-cpanmakedepends=""
-replaces=perl-time-date
-provides="perl-time-date=$pkgver"
-depends="$cpandepends"
-makedepends="perl-dev $cpanmakedepends"
+license="GPL-1.0-or-later OR Artistic-1.0-Perl"
+depends="perl"
+makedepends="perl-dev"
subpackages="$pkgname-doc"
-source="http://search.cpan.org/CPAN/authors/id/G/GB/GBARR/$_pkgreal-$pkgver.tar.gz"
+source="https://cpan.metacpan.org/authors/id/A/AT/ATOOMIC/TimeDate-$pkgver.tar.gz"
+
+replaces="perl-time-date"
+provides="perl-time-date=$pkgver"
-_builddir="$srcdir/$_pkgreal-$pkgver"
+builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
- cd "$_builddir"
- export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ default_prepare
+ 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}'`
- make && make test
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ make
+}
+
+check() {
+ make test
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
-md5sums="b1d91153ac971347aee84292ed886c1c TimeDate-2.30.tar.gz"
-sha256sums="75bd254871cb5853a6aa0403ac0be270cdd75c9d1b6639f18ecba63c15298e86 TimeDate-2.30.tar.gz"
-sha512sums="c6aa7d57fbe82260c7455f74f6dfda55f7c93d7a75914bafb9d09ebfb83b5f57f6bc1e332ab0764d7688d857eb022b0f5e92cf5b685d809c63cdfa93a8d2c221 TimeDate-2.30.tar.gz"
+sha512sums="abee40d77ce4a57e251575b450406b1d26ac369d05899c1630f996b6f3c0c5ac222b84ff04d6fdf4c0763eb0a5bc45a59edadcfb15c73982787c8c17e0ee2a2a TimeDate-2.31.tar.gz"