# Automatically generated by apkbuild-cpan, template 3
# Contributor: Timothy Legge <timlegge@gmail.com>
# Maintainer: Timothy Legge <timlegge@gmail.com>
pkgname=perl-moox-types-mooselike-numeric
_pkgreal=MooX-Types-MooseLike-Numeric
pkgver=1.03
pkgrel=2
pkgdesc="Moo types for numbers"
url="https://metacpan.org/release/MooX-Types-MooseLike-Numeric/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-moox-types-mooselike"
makedepends="perl-test-fatal perl-moo"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/M/MA/MATEU/MooX-Types-MooseLike-Numeric-$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="34f35c6083f3338ba07031b90971ba8b432e5d9210b0b0a2ed4252401b8374301314372a3565a26cf86296fca418f63c35bf1fe495bdb4e7c8e6ee16c546ec54  MooX-Types-MooseLike-Numeric-1.03.tar.gz"
