# Automatically generated by apkbuild-cpan, template 3
# Contributor: Celeste <cielesti@protonmail.com>
# Maintainer: Celeste <cielesti@protonmail.com>
pkgname=perl-test2-tools-command
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Test2-Tools-Command
pkgver=0.20
pkgrel=0
pkgdesc="Test simple unix commands"
url="https://metacpan.org/release/Test2-Tools-Command/"
arch="noarch"
license="BSD-3-Clause"
depends="perl perl-file-chdir perl-test2-suite"
makedepends="perl-module-build"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/J/JM/JMATES/Test2-Tools-Command-$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="
8b7396521fb533e331cdcd97cce2a19808ce91339b900f1743a2179769729b30f23d54ec91babb1d9ea5be291a90687520ef434d5deaf7f9771ad7e80eef94a1  Test2-Tools-Command-0.20.tar.gz
"
