# Automatically generated by apkbuild-cpan, template 2
# Contributor: Timothy Legge <timlegge@gmail.com>
# Maintainer: Timothy Legge <timlegge@gmail.com>
pkgname=perl-moosex-types-datetime
_pkgreal=MooseX-Types-DateTime
pkgver=0.13
pkgrel=3
pkgdesc="L<DateTime> related constraints and coercions for Moose"
url="https://metacpan.org/release/MooseX-Types-DateTime/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl-namespace-clean perl-datetime perl-moosex-types
	perl-datetime-timezone perl-moose perl-datetime-locale"
checkdepends="perl-test-fatal"
makedepends="perl-devel-overloadinfo perl-module-build-tiny perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/E/ET/ETHER/MooseX-Types-DateTime-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	perl Build.PL --installdirs=vendor
	./Build
}

check() {
	./Build test
}

package() {
	./Build install --destdir="$pkgdir"
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="aadd07960d4d20ed5926ea6e14650bf2162a73e40e3e26797ad0323a083c1796f7d623b895e3a612da89315387082a9835380ff2ed7d74455a2074c818533dc5  MooseX-Types-DateTime-0.13.tar.gz"
