mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-11 14:26:38 +02:00
https://metacpan.org/release/THINC/DateTime-Format-Flexible-0.37/diff/THINC/DateTime-Format-Flexible-0.36
42 lines
1.3 KiB
Text
42 lines
1.3 KiB
Text
# Automatically generated by apkbuild-cpan, template 4
|
|
# Maintainer: Celeste <cielesti@protonmail.com>
|
|
maintainer="Celeste <cielesti@protonmail.com>"
|
|
pkgname=perl-datetime-format-flexible
|
|
pkgver=0.37
|
|
pkgrel=0
|
|
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
|
|
_pkgreal=DateTime-Format-Flexible
|
|
pkgdesc="Flexibly parse strings and turn them into DateTime objects"
|
|
url="https://metacpan.org/release/DateTime-Format-Flexible/"
|
|
arch="noarch"
|
|
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
|
|
depends="
|
|
perl perl-datetime perl-datetime-format-builder
|
|
perl-datetime-timezone
|
|
"
|
|
checkdepends="perl-test-exception perl-test-mocktime perl-test-nowarnings"
|
|
subpackages="$pkgname-doc"
|
|
source="https://cpan.metacpan.org/authors/id/T/TH/THINC/DateTime-Format-Flexible-$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 \
|
|
NO_PACKLIST=1 \
|
|
NO_PERLLOCAL=1
|
|
make
|
|
}
|
|
|
|
check() {
|
|
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
|
make test
|
|
}
|
|
|
|
package() {
|
|
make DESTDIR="$pkgdir" install
|
|
}
|
|
|
|
sha512sums="
|
|
730041a7ddfba9fbeb29846354fc6f326ec54c46f2e826b0bcedae86afd5de92aa7304ec73c22c1bc8acb1d5db75c89cbaf54d6bc78c98a77be9f88e616cb2a1 DateTime-Format-Flexible-0.37.tar.gz
|
|
"
|