aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-net-dns/APKBUILD
blob: 9ac4f97f5cb2e3c348e5535fa8889410d9cfe5d6 (plain)
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.18
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="715335144d023bf8ae24adc22b50198369a0a0b21a019d27c7080ebd1b3c7018e7f96952a8e9a2d6fb6a3270abfcc1aabe631cfa78d9579f2f05a88a703205b0  Net-DNS-1.18.tar.gz"