# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-test-tcp
_pkgname=Test-TCP
pkgver=2.21
pkgrel=0
pkgdesc="Testing library for Perl code using TCP"
url="https://metacpan.org/release/Test-TCP"
arch="noarch"
license="Artistic-1.0-Perl OR GPL-2.0-only"
depends="perl-test-sharedfork"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/K/KA/KAZUHO/Test-TCP-$pkgver.tar.gz"
builddir="$srcdir/Test-TCP-$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="488679c4100ad2f7845177e1ebc1da2a91c3ac9e094270ce1ce3cc7f83a1ea4b80b429764da7c92da37e28fd6aed9f6f07b4fba8814d81a4433c7b252a86f9d5  Test-TCP-2.21.tar.gz"