aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-time-timegm
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2017-07-06 10:43:55 +0300
committerTimo Teräs <timo.teras@iki.fi>2017-07-11 14:31:23 +0300
commitd572030be3491ce123dc208e4cfaf31a4a996d8b (patch)
tree320126a08ccaeeab567ee74eaf0fb3b8a18365d3 /testing/perl-time-timegm
parent2dc3ddcf8f14ae96de0121611e59c7aeae8cd46c (diff)
testing/perl-time-timegm: new aport
http://search.cpan.org/dist/Time-timegm/
Diffstat (limited to 'testing/perl-time-timegm')
-rw-r--r--testing/perl-time-timegm/APKBUILD47
1 files changed, 47 insertions, 0 deletions
diff --git a/testing/perl-time-timegm/APKBUILD b/testing/perl-time-timegm/APKBUILD
new file mode 100644
index 00000000000..4f005583433
--- /dev/null
+++ b/testing/perl-time-timegm/APKBUILD
@@ -0,0 +1,47 @@
+# Automatically generated by apkbuild-cpan, template 2
+# Contributor: Timo Teräs <timo.teras@iki.fi>
+# Maintainer: Timo Teräs <timo.teras@iki.fi>
+pkgname=perl-time-timegm
+_pkgreal=Time-timegm
+pkgver=0.01
+pkgrel=0
+pkgdesc="a UTC version of C<mktime()>"
+url="http://search.cpan.org/dist/Time-timegm/"
+arch="all"
+license="GPL PerlArtistic"
+cpandepends=""
+cpanmakedepends=""
+cpancheckdepends=""
+depends="$cpandepends perl-extutils-cchecker"
+makedepends="perl-dev $cpanmakedepends"
+checkdepends="$cpancheckdepends"
+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
+
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ perl Build.PL installdirs=vendor || return 1
+}
+
+build() {
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ ./Build
+}
+
+package() {
+ cd "$builddir"
+ ./Build install destdir="$pkgdir" || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+check() {
+ cd "$builddir"
+ ./Build test
+}
+
+sha512sums="cd7cc8962ccfad353d290d4f5113c8dfe362fdaeb535b843b5007b3a89396ca48ff14a7eb040c14a52dfd0af5c243cdde7d6f5f100c12eb4d133a4de931dd42a Time-timegm-0.01.tar.gz"