diff options
author | Timothy Legge <timlegge@gmail.com> | 2020-02-25 23:55:18 +0000 |
---|---|---|
committer | Ariadne Conill <ariadne@dereferenced.org> | 2020-02-27 00:03:24 +0000 |
commit | 134fc112205617a1cd9f38203a6b7c213014f7ae (patch) | |
tree | 3db764dcb266abb38b601ecfb8bf5f3f7fbd6fca /community/perl-time-parsedate | |
parent | 5fdd96009fc976c1eca2e2349a06259c7bcc2402 (diff) | |
download | aports-134fc112205617a1cd9f38203a6b7c213014f7ae.tar.bz2 aports-134fc112205617a1cd9f38203a6b7c213014f7ae.tar.xz |
community/perl-time-parsedate: move from testing
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" |