aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-net-dns/APKBUILD
blob: 5b21cd4fe6ddd0088e29bc6a3fccc30ca1716157 (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
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer:  Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-net-dns
_pkgname=Net-DNS
pkgver=1.24
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() {
	default_prepare

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

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

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

check() {
	make test
}

sha512sums="4223eeb5b63664d5c1dd9ad4105f167d4864b09be0f795df25f77b89177912969d8fd12063252bd738b27986718145e0ddb8086ecc68a5387e76522e7e1abef5  Net-DNS-1.24.tar.gz"