diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-06-27 06:26:58 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-06-27 06:27:11 +0000 |
commit | 616c58000f9cbd9cfd591d0f5c92e8b1936cbed2 (patch) | |
tree | e20f1ffd6703387409c05907a62fb89b5dd4a001 /main/perl-net-dns | |
parent | 4e747c8ab65aef39d68907d07bef310dd2c09215 (diff) | |
download | aports-616c58000f9cbd9cfd591d0f5c92e8b1936cbed2.tar.bz2 aports-616c58000f9cbd9cfd591d0f5c92e8b1936cbed2.tar.xz |
main/perl-net-dns: modernize APKBUILD
Diffstat (limited to 'main/perl-net-dns')
-rw-r--r-- | main/perl-net-dns/APKBUILD | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/main/perl-net-dns/APKBUILD b/main/perl-net-dns/APKBUILD index e1c177ce51..9473a1160a 100644 --- a/main/perl-net-dns/APKBUILD +++ b/main/perl-net-dns/APKBUILD @@ -3,7 +3,7 @@ pkgname=perl-net-dns _realname=Net-DNS pkgver=1.11 -pkgrel=0 +pkgrel=1 pkgdesc="Perl interface to the DNS resolver" url="http://www.net-dns.org/" arch="noarch" @@ -12,14 +12,20 @@ depends="perl" makedepends="perl-dev" install="" subpackages="$pkgname-doc" +checkdepends="perl-net-dns-sec perl-digest-hmac perl-net-libidn perl-test-pod" 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" +prepare() { + cd "$builddir" + export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor +} + build() { - cd "$bbuilddir" - PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 - make || return 1 + cd "$builddir" + export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` + make } package() { |