projects/aports·blob master · refs

41 lines · 1.2 KiB

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