| 1 | # Automatically generated by apkbuild-cpan, template 4 |
| 2 | # Contributor: Timothy Legge <[email protected]> |
| 3 | # Maintainer: Timothy Legge <[email protected]> |
| 4 | pkgname=perl-datetime-format-iso8601 |
| 5 | pkgver=0.19 |
| 6 | pkgrel=0 |
| 7 | # _pkgreal is used by apkbuild-cpan to find modules at MetaCpan |
| 8 | _pkgreal=DateTime-Format-ISO8601 |
| 9 | pkgdesc="Parses ISO8601 formats" |
| 10 | url="https://metacpan.org/release/DateTime-Format-ISO8601/" |
| 11 | arch="noarch" |
| 12 | license="GPL-1.0-or-later OR Artistic-1.0-Perl" |
| 13 | depends=" |
| 14 | perl perl-datetime perl-datetime-format-builder perl-specio perl-namespace-autoclean |
| 15 | perl-params-validationcompiler |
| 16 | " |
| 17 | subpackages="$pkgname-doc" |
| 18 | source="https://cpan.metacpan.org/authors/id/T/TI/TIMLEGGE/DateTime-Format-ISO8601-$pkgver.tar.gz" |
| 19 | builddir="$srcdir/$_pkgreal-$pkgver" |
| 20 | |
| 21 | build() { |
| 22 | export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') |
| 23 | PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL \ |
| 24 | INSTALLDIRS=vendor \ |
| 25 | NO_PACKLIST=1 \ |
| 26 | NO_PERLLOCAL=1 |
| 27 | make |
| 28 | } |
| 29 | |
| 30 | check() { |
| 31 | export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') |
| 32 | make test |
| 33 | } |
| 34 | |
| 35 | package() { |
| 36 | make DESTDIR="$pkgdir" install |
| 37 | } |
| 38 | |
| 39 | sha512sums=" |
| 40 | a1cf2953f6a03f85be51a066e80adfe8dab0f1add208d2278e7def61e6fa88678e04bcfc140c4bd754954512f92f89e10583db919742f73577b5bd0004955a75 DateTime-Format-ISO8601-0.19.tar.gz |
| 41 | " |