aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2017-11-05 17:07:22 +0000
committerRoberto Oliveira <robertoguimaraes8@gmail.com>2017-11-05 17:07:22 +0000
commitcd8e941276d8b6f72900edcdf336769aaf45cfee (patch)
tree748349eeb58a29d41082b4e553c862e5e4d8f70b
parent9112135c6189a24c8eab5f3771de6b71d748b69c (diff)
downloadaports-cd8e941276d8b6f72900edcdf336769aaf45cfee.tar.gz
aports-cd8e941276d8b6f72900edcdf336769aaf45cfee.tar.bz2
aports-cd8e941276d8b6f72900edcdf336769aaf45cfee.tar.xz
community/perl-net-ipv4addr: modernize and add check
-rw-r--r--community/perl-net-ipv4addr/APKBUILD15
1 files changed, 9 insertions, 6 deletions
diff --git a/community/perl-net-ipv4addr/APKBUILD b/community/perl-net-ipv4addr/APKBUILD
index c61e852115..7633de4c3d 100644
--- a/community/perl-net-ipv4addr/APKBUILD
+++ b/community/perl-net-ipv4addr/APKBUILD
@@ -3,7 +3,7 @@
pkgname=perl-net-ipv4addr
_realname=Net-IPv4Addr
pkgver=0.10
-pkgrel=1
+pkgrel=2
pkgdesc="Perl extension for manipulating IPv4 addresses"
url="http://search.cpan.org/~frajulac/Net-IPv4Addr/"
arch="noarch"
@@ -16,16 +16,19 @@ builddir="$srcdir/$_realname-$pkgver"
build() {
cd "$builddir"
- PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
- make || return 1
+ 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
+ make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
-md5sums="57aa8e28ebcd4c0c9f15792740e53d3c Net-IPv4Addr-0.10.tar.gz"
-sha256sums="3845de4f30b17c842b192cace8879dbb6214de9692cfa70f0aaf0981422a63fe Net-IPv4Addr-0.10.tar.gz"
sha512sums="66381f9be27c010721970d1af245885379bcc0b57c4c1179fc00e89a53a2d53e7836789b13d4c5f0079fac63d7987e12ee71f3168517ea5e1064d5fe1f7455af Net-IPv4Addr-0.10.tar.gz"