# Automatically generated by apkbuild-cpan, template 4
# Contributor: Roberto Oliveira <robertoguimaraes8@gmail.com>
# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=perl-test-cpan-meta
pkgver=0.25
pkgrel=5
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Test-CPAN-Meta
pkgdesc="Validate your CPAN META.json files"
url="https://metacpan.org/release/Test-CPAN-Meta/"
arch="noarch"
license="Artistic-2.0"
depends="perl"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/B/BA/BARBIE/Test-CPAN-Meta-$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 \
		NO_PACKLIST=1 \
		NO_PERLLOCAL=1
	make
}

check() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	make test
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
60a3414e1e0f9aaa1a9459aedd76a6d937742a4197d0d5ce9330348138997d372ca3f454c262fb6dd757699168aa7d1c2653c4066060c9c5685a6fe407260580  Test-CPAN-Meta-0.25.tar.gz
"
