aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-time-duration-parse/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'testing/perl-time-duration-parse/APKBUILD')
-rw-r--r--testing/perl-time-duration-parse/APKBUILD17
1 files changed, 6 insertions, 11 deletions
diff --git a/testing/perl-time-duration-parse/APKBUILD b/testing/perl-time-duration-parse/APKBUILD
index 1248e8e4c0..920577ff79 100644
--- a/testing/perl-time-duration-parse/APKBUILD
+++ b/testing/perl-time-duration-parse/APKBUILD
@@ -4,43 +4,38 @@
pkgname=perl-time-duration-parse
_pkgreal=Time-Duration-Parse
pkgver=0.13
-pkgrel=0
+pkgrel=1
pkgdesc="Parse string that represents time duration"
-url="http://search.cpan.org/dist/Time-Duration-Parse/"
+url="https://metacpan.org/release/Time-Duration-Parse"
arch="noarch"
-license="GPL PerlArtistic"
+license="GPL-1.0-or-later OR Artistic-1.0-Perl"
cpandepends="perl-exporter-lite"
-cpanmakedepends=""
cpancheckdepends="perl-time-duration"
depends="$cpandepends"
-makedepends="perl-dev $cpanmakedepends"
+makedepends="perl-dev"
checkdepends="$cpancheckdepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/N/NE/NEILB/$_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_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}
build() {
- cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make
}
package() {
- cd "$builddir"
- make DESTDIR="$pkgdir" install || return 1
+ make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
check() {
- cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make test
}