# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-test-most
_pkgreal=Test-Most
_author=OVID
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=0.35
pkgrel=0
pkgdesc="Most commonly needed Perl test functions and features"
url="https://metacpan.org/release/Test-Most"
arch="noarch"
license="Artistic-1.0-Perl"
depends="perl perl-exception-class perl-test-deep perl-test-differences
	perl-test-exception perl-test-warn"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	make test
}

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

sha512sums="1b2d201811e59d7afce47ff5f7da67c170d4685ffbec23360757b5cacc9fe72fc82609bc46cc9d8e351fdb75715696457c201dd94fadaeca70a6f31690236291  Test-Most-0.35.tar.gz"