# Contributor: Wen Heping <wenheping2000@hotmail.com>
# Maintainer: Wen Heping <wenheping2000@hotmail.com>
pkgname=perl-moosex-types-path-tiny
pkgver=0.012
pkgrel=0
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=MooseX-Types-Path-Tiny
pkgdesc="Path::Tiny types and coercions for Moose"
url="https://metacpan.org/release/MooseX-Types-Path-Tiny/"
arch="noarch"
license="Apache-2.0"
depends="
	perl perl-moose perl-moosex-types perl-moosex-types-stringlike
	perl-path-tiny perl-namespace-autoclean
	"
makedepends="perl-module-build-tiny perl-module-build"
checkdepends="perl-file-pushd perl-test-fatal"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/E/ET/ETHER/MooseX-Types-Path-Tiny-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

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

check() {
	./Build test
}

package() {
	./Build install --destdir="$pkgdir"
}

sha512sums="
96f7632a94677e85f88fdae3b818ff54096f088137baef994181fcb352dcd4b6da5993045422923fe232e3818582e067dcfd5c7689713488aee09da8f8285351  MooseX-Types-Path-Tiny-0.012.tar.gz
"
