diff options
Diffstat (limited to 'community/perl-time-parsedate')
-rw-r--r-- | community/perl-time-parsedate/APKBUILD | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/community/perl-time-parsedate/APKBUILD b/community/perl-time-parsedate/APKBUILD new file mode 100644 index 0000000000..962bc577ed --- /dev/null +++ b/community/perl-time-parsedate/APKBUILD @@ -0,0 +1,34 @@ +# 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=3 +pkgdesc="Parse and format time values" +url="https://metacpan.org/release/Time-ParseDate/" +arch="noarch" +license="GPL-1.0-or-later OR Artistic-1.0-Perl" +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" +replaces=perl-time-modules + +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="3c5bf09198289a889e606c806fbb225e729fa1a0af6d04056b75c4c61110e6135fce0eccd8c58a2f1db364d7d624b417f4960bdfa376d2fb9b16ecf090879fd0 Time-ParseDate-2015.103.tar.gz" |