aports/testing/perl-datetime-timezone-catalog-extend/APKBUILD

40 lines
1.3 KiB
Plaintext

# Automatically generated by apkbuild-cpan, template 4
# Contributor: Celeste <cielesti@protonmail.com>
# Maintainer: Celeste <cielesti@protonmail.com>
pkgname=perl-datetime-timezone-catalog-extend
pkgver=0.3.1
pkgrel=0
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=DateTime-TimeZone-Catalog-Extend
pkgdesc="Extend DateTime::TimeZone catalog"
url="https://metacpan.org/release/DateTime-TimeZone-Catalog-Extend/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-datetime-timezone-alias perl-nice-try"
checkdepends="perl-datetime-timezone"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/J/JD/JDEGUEST/DateTime-TimeZone-Catalog-Extend-v$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-v$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 TZ=UTC test
}
package() {
make DESTDIR="$pkgdir" install
}
sha512sums="
26a52f76433c311ee91fc928608d533b73431b44a7243d0eb80246c38569f143727b91ac25e71295d2d770bb79be09607aa67027d3f74c1b49e016cd02acc9ca DateTime-TimeZone-Catalog-Extend-v0.3.1.tar.gz
"