aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-time-duration-parse
diff options
context:
space:
mode:
authorTimothy Legge <timlegge@gmail.com>2020-03-23 00:48:07 +0000
committerRasmus Thomsen <oss@cogitri.dev>2020-03-23 09:47:46 +0000
commitf15e69c4cb78de9c55d88893e420461cb734da8b (patch)
treea201185c75af9191fa0b518113b74ae859b187f8 /community/perl-time-duration-parse
parentafb737175f109fcf6f66f401beebaf86ac9ee412 (diff)
downloadaports-f15e69c4cb78de9c55d88893e420461cb734da8b.tar.bz2
aports-f15e69c4cb78de9c55d88893e420461cb734da8b.tar.xz
community/perl-time-duration-parse: move from testing and modernize
Diffstat (limited to 'community/perl-time-duration-parse')
-rw-r--r--community/perl-time-duration-parse/APKBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/community/perl-time-duration-parse/APKBUILD b/community/perl-time-duration-parse/APKBUILD
new file mode 100644
index 0000000000..c12c3e50a9
--- /dev/null
+++ b/community/perl-time-duration-parse/APKBUILD
@@ -0,0 +1,36 @@
+# Automatically generated by apkbuild-cpan, template 3
+# Contributor: Timo Teräs <timo.teras@iki.fi>
+# Maintainer: Timo Teräs <timo.teras@iki.fi>
+pkgname=perl-time-duration-parse
+#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
+_pkgreal=Time-Duration-Parse
+pkgver=0.15
+pkgrel=1
+pkgdesc="Parse string that represents time duration"
+url="https://metacpan.org/release/Time-Duration-Parse/"
+arch="noarch"
+license="GPL-1.0-or-later OR Artistic-1.0-Perl"
+depends="perl perl-exporter-lite"
+makedepends="perl-dev"
+checkdepends="perl-time-duration"
+subpackages="$pkgname-doc"
+source="https://cpan.metacpan.org/authors/id/N/NE/NEILB/Time-Duration-Parse-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgreal-$pkgver"
+
+build() {
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
+ make
+}
+
+check() {
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ make test
+}
+
+package() {
+ make DESTDIR="$pkgdir" install
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+sha512sums="1cd4b303cedc58d8513165297369b3705c2fe07db9b626c922829a8a86586bbdf631cd06052924dfaa030a5179e121bbb9c0d8b7159d54e137cb9e70f3086e20 Time-Duration-Parse-0.15.tar.gz"