aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-datetime-format-iso8601/APKBUILD
blob: 8514fec404ed798ff7ce39bb738a957c269dcf11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Automatically generated by apkbuild-cpan, template 3
# Contributor: Timothy Legge <timlegge@gmail.com>
# Maintainer: Timothy Legge <timlegge@gmail.com>
pkgname=perl-datetime-format-iso8601
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=DateTime-Format-ISO8601
pkgver=0.16
pkgrel=0
pkgdesc="Parses ISO8601 formats"
url="https://metacpan.org/release/DateTime-Format-ISO8601/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="
	perl perl-datetime perl-datetime-format-builder perl-specio perl-namespace-autoclean
	perl-params-validationcompiler
	"
checkdepends="perl-test2-suite"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/DateTime-Format-ISO8601-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

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="3a8985d06f3953308cb9ebb8f322b5cbf6c3dfba99a71a4e2005ba5b23d9b2f2d3967f76e2d09991b75833dc70a4aa352829648b601e79054da79304904a07e4  DateTime-Format-ISO8601-0.16.tar.gz"