# Automatically generated by apkbuild-cpan, template 3
# Contributor: Timothy Legge <timlegge@gmail.com>
# Maintainer: Timothy Legge <timlegge@gmail.com>
pkgname=perl-sub-exporter-formethods
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Sub-Exporter-ForMethods
pkgver=0.100055
pkgrel=1
pkgdesc="helper routines for using Sub::Exporter to build methods"
url="https://metacpan.org/release/Sub-Exporter-ForMethods/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-sub-exporter"
checkdepends="perl-namespace-autoclean"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/R/RJ/RJBS/Sub-Exporter-ForMethods-$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="
d4e2a02d7628f5d51b3d17937ba3f14ae4efead8e1ca298ae7c901e15177fa2e6df4367543303f21307137d857e232190a8b2c286ff6fe64fbae11e26172868d  Sub-Exporter-ForMethods-0.100055.tar.gz
"
