aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2018-06-22 14:31:06 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2018-07-03 13:10:30 +0000
commiteff029c84a28be84c58ca9756b29cc7649b6de13 (patch)
tree85465aa33e77ffeaa7af1a6ec7e6d35351c6d54f /main
parentdcd0d7089d19996375bcfded9916d41ebea1d21c (diff)
downloadaports-eff029c84a28be84c58ca9756b29cc7649b6de13.tar.bz2
aports-eff029c84a28be84c58ca9756b29cc7649b6de13.tar.xz
main/perl-socket-getaddrinfo: upgrade to 0.22 and modernize
Diffstat (limited to 'main')
-rw-r--r--main/perl-socket-getaddrinfo/APKBUILD23
1 files changed, 14 insertions, 9 deletions
diff --git a/main/perl-socket-getaddrinfo/APKBUILD b/main/perl-socket-getaddrinfo/APKBUILD
index 665c954412..af3827d5bc 100644
--- a/main/perl-socket-getaddrinfo/APKBUILD
+++ b/main/perl-socket-getaddrinfo/APKBUILD
@@ -2,8 +2,8 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-socket-getaddrinfo
_pkgreal=Socket-GetAddrInfo
-pkgver=0.20
-pkgrel=2
+pkgver=0.22
+pkgrel=0
pkgdesc="Perl interface for get{addr,name}info(3)"
url="http://search.cpan.org/dist/Socket-GetAddrInfo/"
arch="noarch"
@@ -13,18 +13,23 @@ makedepends="perl-dev perl-module-build"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/P/PE/PEVANS/$_pkgreal-$pkgver.tar.gz"
-_builddir="$srcdir/$_pkgreal-$pkgver"
+builddir="$srcdir/$_pkgreal-$pkgver"
build() {
- cd "$_builddir"
- PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
- make && make test || return 1
+ cd "$builddir"
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ make
+}
+
+check() {
+ cd "$builddir"
+ make test
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
find "$pkgdir" -name .packlist -name perllocal.pod -delete
}
-sha512sums="bbbd635187a0d7ef1da550bdb66a8efd53edcd7b5be320af48988951d0c8e785d6945c66f8216af2fdfef429bc3339f8b279bca5df2b804fa20587b2b898a9bb Socket-GetAddrInfo-0.20.tar.gz"
+sha512sums="3117ad5931dd116f45afa041b7aad4506382c4359b67e61564affba6f34fe14db5dbe0dc0a1bf4c0b680847bda58958604907ff0339d500728b44301cf1fe554 Socket-GetAddrInfo-0.22.tar.gz"