diff options
author | Timothy Legge <timlegge@gmail.com> | 2019-03-23 23:01:42 +0000 |
---|---|---|
committer | Kevin Daudt <kdaudt@alpinelinux.org> | 2019-03-25 21:25:48 +0000 |
commit | f113220de9b0e15f7091c4cf403c9894bc094031 (patch) | |
tree | 4e2798870510d868a1041df7bccae239299fec25 /testing/perl-time-parsedate | |
parent | ea073037f13081450b8d51e17bbd0fa557b7dd8d (diff) | |
download | aports-f113220de9b0e15f7091c4cf403c9894bc094031.tar.bz2 aports-f113220de9b0e15f7091c4cf403c9894bc094031.tar.xz |
perl-time-parsedate new aport
Diffstat (limited to 'testing/perl-time-parsedate')
-rw-r--r-- | testing/perl-time-parsedate/APKBUILD | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/testing/perl-time-parsedate/APKBUILD b/testing/perl-time-parsedate/APKBUILD new file mode 100644 index 0000000000..1d7c40c7de --- /dev/null +++ b/testing/perl-time-parsedate/APKBUILD @@ -0,0 +1,36 @@ +# Automatically generated by apkbuild-cpan, template 2 +# Contributor: Timothy Legge <timlegge@gmail.com> +# Maintainer: Timothy Legge <timlegge@gmail.com> +pkgname=perl-time-parsedate +_pkgreal=Time-ParseDate +pkgver=2015.103 +pkgrel=0 +pkgdesc="Parse and format time values" +url="https://metacpan.org/release/Time-ParseDate/" +arch="noarch" +license="GPL PerlArtistic" +makedepends="perl-dev" +subpackages="$pkgname-doc" +source="https://cpan.metacpan.org/authors/id/M/MU/MUIR/modules/Time-ParseDate-$pkgver.tar.gz" +builddir="$srcdir/$_pkgreal-$pkgver" + +build() { + cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor + make +} + +check() { + cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + make test +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +sha512sums="3c5bf09198289a889e606c806fbb225e729fa1a0af6d04056b75c4c61110e6135fce0eccd8c58a2f1db364d7d624b417f4960bdfa376d2fb9b16ecf090879fd0 Time-ParseDate-2015.103.tar.gz" |