# Automatically generated by apkbuild-cpan, template 3
# Contributor: Timothy Legge <timlegge@gmail.com>
# Maintainer: Timothy Legge <timlegge@gmail.com>
pkgname=perl-moosex-types-uri
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=MooseX-Types-URI
pkgver=0.09
pkgrel=1
pkgdesc="URI related types and coercions for Moose"
url="https://metacpan.org/release/MooseX-Types-URI/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-namespace-autoclean perl-uri-fromhash perl-moosex-types perl-uri"
makedepends="perl-module-build-tiny perl-module-build"
checkdepends="perl-test-without-module perl-test-needs perl-moose"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/E/ET/ETHER/MooseX-Types-URI-$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="b55fcb34a7033fe3e9d24b66aea4caf9bbc5508f609cd299fc2a31e1869e8b5b0b2007721a2c62f842890bfabbeb3787137c3c9684268228e6061e7c758b027c  MooseX-Types-URI-0.09.tar.gz"
