# Automatically generated by apkbuild-cpan, template 1
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-test-tcp
_pkgreal=Test-TCP
pkgver=2.14
pkgrel=0
pkgdesc="testing TCP program"
url="http://search.cpan.org/dist/Test-TCP/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-test-sharedfork"
cpanmakedepends="   "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends perl-module-build"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/T/TO/TOKUHIROM/$_pkgreal-$pkgver.tar.gz"

_builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	cd "$_builddir"
}

build() {
	cd "$_builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make || return 1
}

package() {
	cd "$_builddir"
	make install DESTDIR=$pkgdir || return 1
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

md5sums="402e78138e3269dde973960dd3d44d09  Test-TCP-2.14.tar.gz"
sha256sums="b96a3f364748280146fa30a129c72c104133f6768872788b688ea88d4f7d7d01  Test-TCP-2.14.tar.gz"
sha512sums="89c6038ff2660ce8a17001f5574313325bad593f93a6e22e78f46772fe898556fcb9e11e07fa7ecd342703fd246033e242c857e8773c90230fab29c5f677dc03  Test-TCP-2.14.tar.gz"
