# Automatically generated by apkbuild-cpan, template 3
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-datetime-calendar-julian
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=DateTime-Calendar-Julian
pkgver=0.107
pkgrel=1
pkgdesc="DateTime object in the Julian calendar"
url="https://metacpan.org/release/DateTime-Calendar-Julian/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-datetime"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/W/WY/WYANT/DateTime-Calendar-Julian-$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="
8219c4d8e998ebeb536d46f2d81b40a5ff21a3fc3c6e8c2c063b334e7a9f2cb73f14cdb5c82cac60bc9b1c6eb6ff43235f955f7775e47aaf4f903db654a34a5b  DateTime-Calendar-Julian-0.107.tar.gz
"
