aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-net-dns
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2017-03-24 12:41:04 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2017-03-24 12:45:29 +0000
commit2af92921af4d9e57043ebe2eb9b40f93332b3460 (patch)
tree311b7789fdf108ee38d971d1fba5c7afed805ac0 /main/perl-net-dns
parent4421027aeffaddccf66b297351c51d4a2a651f30 (diff)
downloadaports-2af92921af4d9e57043ebe2eb9b40f93332b3460.tar.bz2
aports-2af92921af4d9e57043ebe2eb9b40f93332b3460.tar.xz
main/perl-net-dns: upgrade to 1.09
add check
Diffstat (limited to 'main/perl-net-dns')
-rw-r--r--main/perl-net-dns/APKBUILD15
1 files changed, 10 insertions, 5 deletions
diff --git a/main/perl-net-dns/APKBUILD b/main/perl-net-dns/APKBUILD
index 61e6fe1637..3e182a2e94 100644
--- a/main/perl-net-dns/APKBUILD
+++ b/main/perl-net-dns/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-net-dns
_realname=Net-DNS
-pkgver=1.08
+pkgver=1.09
pkgrel=0
pkgdesc="Perl interface to the DNS resolver"
url="http://www.net-dns.org/"
@@ -14,19 +14,24 @@ install=""
subpackages="$pkgname-doc"
source="http://www.cpan.org/authors/id/N/NL/NLNETLABS/${_realname}-$pkgver.tar.gz"
source="http://search.cpan.org/CPAN/authors/id/N/NL/NLNETLABS/$_realname-$pkgver.tar.gz"
+builddir="$srcdir/$_realname-$pkgver"
-_builddir="$srcdir/$_realname-$pkgver"
build() {
- cd "$_builddir"
+ cd "$bbuilddir"
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
make || return 1
}
package() {
- cd "$_builddir"
+ cd "$builddir"
make DESTDIR="$pkgdir" install
# creates file collision among perl modules
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
-sha512sums="a0af812f8a21599070c01a0623f1472da1fffbdcf19fba2debd9bc9d84e59149d3db216da8b26206ce64d305706d78d0c05bb6a8ced1ed8df27813bd0f94d70f Net-DNS-1.08.tar.gz"
+check() {
+ cd "$builddir"
+ make test
+}
+
+sha512sums="82dbdf9e38992fab34687a204520d7311d688830aadee329039595d0ac52d4c485cc90b1388af3abfa4c16c70aa619b22c6cded264807cd759898de5e3b76273 Net-DNS-1.09.tar.gz"