mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-05-09 06:04:20 +02:00
41 lines
1.2 KiB
Text
41 lines
1.2 KiB
Text
# Automatically generated by apkbuild-cpan, template 4
|
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=perl-datetime-timezone
|
|
pkgver=2.65
|
|
pkgrel=0
|
|
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
|
|
_pkgreal=DateTime-TimeZone
|
|
pkgdesc="Time zone object base class and factory"
|
|
url="https://metacpan.org/release/DateTime-TimeZone/"
|
|
arch="noarch"
|
|
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
|
|
depends="
|
|
perl perl-specio perl-class-singleton perl-module-runtime perl-params-validationcompiler
|
|
perl-try-tiny perl-namespace-autoclean
|
|
"
|
|
checkdepends="perl-test-requires perl-test-fatal"
|
|
subpackages="$pkgname-doc"
|
|
source="https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/DateTime-TimeZone-$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="
|
|
724fc0b2f4feaba70759ee254d5736d8d2300c345c352fe682cba62bfa84d66dee8929249b974656ff062388a32f1e05cadddf3c742ac543c4c17bbcf7f5cfce DateTime-TimeZone-2.65.tar.gz
|
|
"
|