# Automatically generated by apkbuild-cpan, template 2
# Contributor: Timothy Legge <timlegge@gmail.com>
# Maintainer: Timothy Legge <timlegge@gmail.com>
pkgname=perl-moosex
_pkgreal=MooseX
pkgver=0.002
pkgrel=3
pkgdesc="Document the MooseX namespace"
url="https://metacpan.org/release/MooseX/"
arch="noarch"
license="GPL-1.0-or-later Artistic-1.0-Perl"
depends="perl"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/E/ET/ETHER/MooseX-$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="89873ed54db7ef67ee5dca01395052dc4e74666c7d022c8427c46bc068e5a5d58c9abd3be0fed0320e43f5be32b80f2364c6e8c6c6baff82855a25cb0f8c9363  MooseX-0.002.tar.gz"
