diff options
author | Timothy Legge <timlegge@gmail.com> | 2020-03-22 12:39:20 +0000 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2020-03-22 13:04:17 +0000 |
commit | a59f77a9927407c1971a9e1b7ac29c9e18a6cd70 (patch) | |
tree | acfc68d00eedf6e6e8a5e3b7108dfac083eb674a /community/perl-time-local/APKBUILD | |
parent | 1b90e00652571f8366e8d6e29a32ce66ab7ac11c (diff) | |
download | aports-a59f77a9927407c1971a9e1b7ac29c9e18a6cd70.tar.bz2 aports-a59f77a9927407c1971a9e1b7ac29c9e18a6cd70.tar.xz |
community/perl-time-local: upgrade to 1.30 and modernize
Diffstat (limited to 'community/perl-time-local/APKBUILD')
-rw-r--r-- | community/perl-time-local/APKBUILD | 32 |
1 files changed, 12 insertions, 20 deletions
diff --git a/community/perl-time-local/APKBUILD b/community/perl-time-local/APKBUILD index 6f7ae57be6..0dce3947b1 100644 --- a/community/perl-time-local/APKBUILD +++ b/community/perl-time-local/APKBUILD @@ -1,43 +1,35 @@ -# Automatically generated by apkbuild-cpan, template 1 +# Automatically generated by apkbuild-cpan, template 3 # Contributor: Francesco Colista <fcolista@alpinelinux.org> # Maintainer: Francesco Colista <fcolista@alpinelinux.org> pkgname=perl-time-local +#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan _pkgreal=Time-Local -pkgver=1.28 -pkgrel=1 +pkgver=1.30 +pkgrel=0 pkgdesc="Efficiently compute time from local and GMT time" -url="https://search.cpan.org/dist/Time-Local/" +url="https://metacpan.org/release/Time-Local/" arch="noarch" license="GPL-1.0-or-later OR Artistic-1.0-Perl" -depends="$cpandepends" -makedepends="perl-dev $cpanmakedepends" +depends="perl" +makedepends="perl-dev" subpackages="$pkgname-doc" -source="https://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/$_pkgreal-$pkgver.tar.gz" +source="https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/Time-Local-$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-$pkgver" -prepare() { - cd "$builddir" - PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor -} - build() { - cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor make } check() { - cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') make test } package() { - cd "$builddir" make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } -doc() { - default_doc - replaces="perl-doc" -} -sha512sums="8e5e36f84bf9314e780687eaa1a48475ecc4c6cce4510b18d556f1d9ca9ec8b744ac45b4d7d1d9db9bb1a0f15886e8e4ac39aee0882d24fad5becab573b27b67 Time-Local-1.28.tar.gz" +sha512sums="4a27db9a4573b0382d1d5bb9213ca2657b401d91edf573be3235ef899bd5215bf95985152ac20550b121da9952ac51b8a1e568b3a73198d77adac14b688e92ee Time-Local-1.30.tar.gz" |