Commit 7fc21d32 authored by Natanael Copa's avatar Natanael Copa

main/perl-test-tcp: upgrade to 2.00

parent fdbf3a88
# Contributor: Natanael Copa <ncopa@alpinelinux.org> # Automatically generated by apkbuild-cpan, template 1
# Maintainer: Natanael Copa <ncopa@alpinelinux.org> # Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-test-tcp pkgname=perl-test-tcp
pkgver=1.13 _pkgreal=Test-TCP
pkgver=2.00
pkgrel=0 pkgrel=0
pkgdesc="Test::TCP perl module" pkgdesc="testing TCP program"
url="http://search.cpan.org/dist/Test-TCP/" url="http://search.cpan.org/dist/Test-TCP/"
arch="noarch" arch="noarch"
license="GPLv2 or Artistic" license="GPL PerlArtistic"
depends="perl perl-test-sharedfork" cpandepends="perl-test-sharedfork"
makedepends="perl-dev" cpanmakedepends=" "
install="" depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc" subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/T/TO/TOKUHIROM/Test-TCP-$pkgver.tar.gz" source="http://search.cpan.org/CPAN/authors/id/T/TO/TOKUHIROM/$_pkgreal-$pkgver.tar.gz"
_builddir="$srcdir/$_pkgreal-$pkgver"
_builddir="$srcdir"/Test-TCP-$pkgver
prepare() { prepare() {
local i
cd "$_builddir" cd "$_builddir"
for i in $source; do export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
case $i in perl Build.PL installdirs=vendor || return 1
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
} }
build() { build() {
cd "$_builddir" cd "$_builddir"
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
make && make test || return 1 ./Build && ./Build test
} }
package() { package() {
cd "$_builddir" cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1 ./Build install destdir="$pkgdir" || return 1
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
} }
md5sums="fe152a1e66123b0de6779e0aa546ab34 Test-TCP-1.13.tar.gz" md5sums="48e496d9550e6f78eb0d622d6eea909b Test-TCP-2.00.tar.gz"
sha256sums="95e3239975bb42af9eba9f38224bc6be4a2c4cbb0d3b5c1a2d8d9a3957d0630c Test-TCP-2.00.tar.gz"
sha512sums="be6e9e9b83ffabc377d396858875851e89190b860dd1dc43582613c760fb91d2bf5578c5a56112872364c6247b0ff76593a6790d80c25c11caa564639ba658b5 Test-TCP-2.00.tar.gz"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment