aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-time-timegm
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-07-03 06:57:57 -0300
committerLeo <thinkabit.ukim@gmail.com>2019-07-03 06:57:57 -0300
commit8399e7df2c355c0bd99950a3a76722b48d2f9df0 (patch)
tree6b0b1009434464ae53089e84a8f9bdd2866d7214 /testing/perl-time-timegm
parent953ec22f8073487d5421be6ca857de407c639993 (diff)
downloadaports-8399e7df2c355c0bd99950a3a76722b48d2f9df0.tar.bz2
aports-8399e7df2c355c0bd99950a3a76722b48d2f9df0.tar.xz
testing/perl-time-timegm: fix url fix license
Diffstat (limited to 'testing/perl-time-timegm')
-rw-r--r--testing/perl-time-timegm/APKBUILD24
1 files changed, 8 insertions, 16 deletions
diff --git a/testing/perl-time-timegm/APKBUILD b/testing/perl-time-timegm/APKBUILD
index 28c695cbe8..3591498ba8 100644
--- a/testing/perl-time-timegm/APKBUILD
+++ b/testing/perl-time-timegm/APKBUILD
@@ -4,43 +4,35 @@
pkgname=perl-time-timegm
_pkgreal=Time-timegm
pkgver=0.01
-pkgrel=1
+pkgrel=2
pkgdesc="a UTC version of C<mktime()>"
-url="http://search.cpan.org/dist/Time-timegm/"
+url="https://metacpan.org/release/Time-timegm"
arch="all"
-license="GPL PerlArtistic"
-cpandepends=""
-cpanmakedepends=""
-cpancheckdepends=""
-depends="$cpandepends perl-extutils-cchecker"
-makedepends="perl-dev perl-module-build $cpanmakedepends"
-checkdepends="$cpancheckdepends"
+license="GPL-1.0-or-later OR Artistic-1.0-Perl"
+depends="perl-extutils-cchecker"
+makedepends="perl-dev perl-module-build"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/P/PE/PEVANS/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
- default_prepare || return 1
+ default_prepare
- 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"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
./Build
}
package() {
- cd "$builddir"
- ./Build install destdir="$pkgdir" || return 1
+ ./Build install destdir="$pkgdir"
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
check() {
- cd "$builddir"
./Build test
}