# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=perl-test-output
_pkgreal=Test-Output
_author=BDFOY
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=1.033
pkgrel=0
pkgdesc="Utilities to test STDOUT and STDERR messages"
url="https://metacpan.org/release/Test-Output"
arch="noarch"
license="Artistic-2.0"
depends="perl perl-capture-tiny perl-sub-exporter perl-test-simple"
checkdepends="perl-test-pod"
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="cc6e94baa5163e2ca0c23d63a6b505da207ed7f436bf9a1a77234ad898c34ae4d81ac42f17d1b8a73a223fd19ce1d1f66f3eef0fc852bb712f4f925a77f29820  Test-Output-1.033.tar.gz"