aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-net-dns/APKBUILD
blob: 5f5aeb8de675cd5a273365f3a9a40e16f716f08d (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
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer:  Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-net-dns
_pkgname=Net-DNS
pkgver=1.21
pkgrel=0
pkgdesc="Perl interface to the DNS resolver"
url="https://www.net-dns.org/"
arch="noarch"
license="GPL-1.0-or-later or Artistic-1.0-Perl"
depends="perl"
makedepends="perl-dev"
subpackages="$pkgname-doc"
checkdepends="perl-digest-hmac perl-net-libidn perl-test-pod"
source="https://www.net-dns.org/download/Net-DNS-$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="2f2471b98f9397341c59fdbf04fa0d0a4c7a9c7586a1ddabe28c71ba9f257bfe14ac485b28e6d4fba99ee45306855d45ec5ee51b8e5b39e9a016253d084e2acb  Net-DNS-1.21.tar.gz"