aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-net-dns/APKBUILD
blob: b43a1f0406e6961011947e41e52707a94deb6dbc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer:  Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-net-dns
_pkgname=Net-DNS
pkgver=1.19
pkgrel=0
pkgdesc="Perl interface to the DNS resolver"
url="http://www.net-dns.org/"
arch="noarch"
license="GPL+ or Artistic"
depends="perl"
makedepends="perl-dev"
install=""
subpackages="$pkgname-doc"
checkdepends="perl-digest-hmac perl-net-libidn perl-test-pod"
source="http://search.cpan.org/CPAN/authors/id/N/NL/NLNETLABS/${_pkgname}-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

prepare() {
	cd "$builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
	cd "$builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
        # creates file collision among perl modules
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

check() {
	cd "$builddir"
	make test
}

sha512sums="82a0c1dd3f3622849efb4d9da68cb74344110f831fb8513d7cbe72bb679ba6b152082da5066a3ad37bc5bf2a0454008e75abf1954e017c354045901a9e02701d  Net-DNS-1.19.tar.gz"