# Automatically generated by apkbuild-cpan, template 3
# Contributor: Celeste <cielesti@protonmail.com>
# Maintainer: Celeste <cielesti@protonmail.com>
pkgname=perl-test-expectandcheck
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Test-ExpectAndCheck
pkgver=0.06
pkgrel=0
pkgdesc="C<expect/check>-style unit testing with object methods"
url="https://metacpan.org/release/Test-ExpectAndCheck/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-test-deep perl-future"
makedepends="perl-module-build"
checkdepends="perl-test2-suite"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/P/PE/PEVANS/Test-ExpectAndCheck-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	perl Build.PL --installdirs=vendor
	./Build
}

check() {
	./Build test
}

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

sha512sums="
ec03a04ef5c9f81ba0ec9f874b1ac7b80cb925a46c759a64fab748555fea4967ddaa7a3638c605da924b4e9fb35c5f9eec6df8a5e71e8ef282dde5115baecf2b  Test-ExpectAndCheck-0.06.tar.gz
"
