aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-07-03 06:58:48 -0300
committerLeo <thinkabit.ukim@gmail.com>2019-07-03 06:58:48 -0300
commit909738e6e8efa790c2b09f3f1c5213de14469106 (patch)
tree51b1ba63a113f46e6633208debbee1fb3155db2a
parentad81c261edb39d64344e056fa56b204932380ad8 (diff)
downloadaports-909738e6e8efa790c2b09f3f1c5213de14469106.tar.gz
aports-909738e6e8efa790c2b09f3f1c5213de14469106.tar.bz2
aports-909738e6e8efa790c2b09f3f1c5213de14469106.tar.xz
testing/perl-time-duration-parse: fix url fix license
-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
}