| 1 | # Automatically generated by apkbuild-cpan, template 4 |
| 2 | # Contributor: Celeste <[email protected]> |
| 3 | # Maintainer: |
| 4 | pkgname=perl-time-moment-role-strptime |
| 5 | pkgver=0.001 |
| 6 | pkgrel=1 |
| 7 | #_pkgreal is used by apkbuild-cpan to find modules at MetaCpan |
| 8 | _pkgreal=Time-Moment-Role-Strptime |
| 9 | pkgdesc="strptime(3) constructor for Time::Moment" |
| 10 | url="https://metacpan.org/release/Time-Moment-Role-Strptime/" |
| 11 | arch="noarch" |
| 12 | license="Artistic-2.0" |
| 13 | depends="perl perl-role-tiny perl-time-moment" |
| 14 | subpackages="$pkgname-doc" |
| 15 | source="https://cpan.metacpan.org/authors/id/D/DB/DBOOK/Time-Moment-Role-Strptime-$pkgver.tar.gz" |
| 16 | builddir="$srcdir/$_pkgreal-$pkgver" |
| 17 | |
| 18 | build() { |
| 19 | export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') |
| 20 | PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL \ |
| 21 | INSTALLDIRS=vendor \ |
| 22 | NO_PACKLIST=1 \ |
| 23 | NO_PERLLOCAL=1 |
| 24 | make |
| 25 | } |
| 26 | |
| 27 | check() { |
| 28 | export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') |
| 29 | make test |
| 30 | } |
| 31 | |
| 32 | package() { |
| 33 | make DESTDIR="$pkgdir" install |
| 34 | } |
| 35 | |
| 36 | sha512sums=" |
| 37 | 53270491640f06d82aa3a864abb877f2ed2b1ac4d0c281bf03511657c199454729551f81cbda9cb9955cb3495bcbeea688c2b189a242ee0c31fe796e2d6a9ee6 Time-Moment-Role-Strptime-0.001.tar.gz |
| 38 | " |