# Contributor: Duncan Bellamy <dunk@denkimushi.com>
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
pkgname=perl-specio-library-path-tiny
pkgver=0.05
pkgrel=1
pkgdesc="Path::Tiny types and coercions for Specio"
url="https://metacpan.org/pod/Specio::Library::Path::Tiny"
arch="noarch"
license="Apache-2.0"
depends="perl perl-path-tiny perl-specio"
makedepends="perl-dev"
subpackages="$pkgname-doc"
checkdepends="perl-file-pushd"
source="https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/Specio-Library-Path-Tiny-$pkgver.tar.gz"
builddir="$srcdir/Specio-Library-Path-Tiny-$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="
69b67cd71fd0cccf043744f0f79869ca456369773d1a0ecfd41d4d095c8b449a83ba55b52949894410272c151354b57d948beda304a76050c87b743d2ebd0642  Specio-Library-Path-Tiny-0.05.tar.gz
"
