# Automatically generated by apkbuild-cpan, template 3
# Contributor: Duncan Bellamy <dunk@denkimushi.com>
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
pkgname=perl-test-count
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Test-Count
pkgver=0.1105
pkgrel=1
pkgdesc="Module for keeping track of the number of tests in a test script."
url="https://metacpan.org/release/Test-Count/"
arch="noarch"
license="MIT"
depends="perl perl-parse-recdescent"
makedepends="perl-dev perl-module-build"
checkdepends="perl-io-stringy"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/S/SH/SHLOMIF/Test-Count-$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="
5beabb51fccf2eb4c727c854b56b908681833b71990c36148efc53be434eca72d01830dd5a93d34bddd2cdb0721dd5e8bd91525fe3c589bad7bf640916b026d9  Test-Count-0.1105.tar.gz
"
