# Automatically generated by apkbuild-cpan, template 1
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-test-most
_pkgreal=Test-Most
pkgver=0.38
pkgrel=1
pkgdesc="Most commonly needed test functions and features"
url="https://metacpan.org/release/Test-Most/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-exception-class perl-test-differences perl-test-warn perl-test-exception perl-test-deep"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/O/OV/OVID/$_pkgreal-$pkgver.tar.gz"

builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

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

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="
cb91e8a1cb61d5ad8d222f077fe2681a68d9b1806263d37989446d42baf911e3b6789cd1fd28fdfb7e4de17ee7766545d5c07356e53e56c5fb6d7c2af9d5d448  Test-Most-0.38.tar.gz
"
