mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 03:05:48 +03:00
38 lines
1.3 KiB
Text
38 lines
1.3 KiB
Text
# 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"
|