diff options
author | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2018-06-21 12:11:25 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2018-06-22 07:17:17 +0000 |
commit | 33e083b00cc1912a68df2220b462769d46aa270a (patch) | |
tree | 8a47623f0f50a70c47912ba831df0de862a69728 /main/perl-test-tcp | |
parent | b4030e6a6057ff385715db78f920961c354d9d71 (diff) | |
download | aports-33e083b00cc1912a68df2220b462769d46aa270a.tar.bz2 aports-33e083b00cc1912a68df2220b462769d46aa270a.tar.xz |
main/perl-test-tcp: upgrade to 2.19 and modernize
Diffstat (limited to 'main/perl-test-tcp')
-rw-r--r-- | main/perl-test-tcp/APKBUILD | 25 |
1 files changed, 9 insertions, 16 deletions
diff --git a/main/perl-test-tcp/APKBUILD b/main/perl-test-tcp/APKBUILD index 4ee37e507a..5155c95b56 100644 --- a/main/perl-test-tcp/APKBUILD +++ b/main/perl-test-tcp/APKBUILD @@ -2,38 +2,31 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=perl-test-tcp _pkgreal=Test-TCP -pkgver=2.14 +pkgver=2.19 pkgrel=0 -pkgdesc="testing TCP program" +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" +makedepends="perl-dev 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" -} +builddir="$srcdir/$_pkgreal-$pkgver" build() { - cd "$_builddir" + cd "$builddir" export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor - make || return 1 + make } package() { - cd "$_builddir" - make install DESTDIR=$pkgdir || return 1 + cd "$builddir" + make install DESTDIR=$pkgdir 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" +sha512sums="1de76f5dc456697d8ea0799bb60d858b0e1c0089f066d1a446c46708e6cb3441849e264526082a066c31519ded4731cde9310b8a493f571ed670c2fbb60a3e85 Test-TCP-2.19.tar.gz" |