# Automatically generated by apkbuild-cpan, template 3
# Contributor: Celeste <cielesti@protonmail.com>
# Maintainer: Celeste <cielesti@protonmail.com>
pkgname=perl-moosex-test-role
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=MooseX-Test-Role
pkgver=0.08
pkgrel=0
pkgdesc="Test functions for Moose roles"
url="https://metacpan.org/release/MooseX-Test-Role/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-class-load"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/P/PB/PBOYD/MooseX-Test-Role-$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="
e2dd157dc7e652b682d7ddc8eb6d951ca14457132aad1d61bd72d69f042d717aa4bb958a7685cef0d96ba1277beb8491018e6a068310ab1a45237c3aed470ac5  MooseX-Test-Role-0.08.tar.gz
"
