aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-net-dns-sec/APKBUILD
blob: 537756451d7cdd76d82754dfbcc54b492950921d (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
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-net-dns-sec
_pkgreal=Net-DNS-SEC
pkgver=1.18
pkgrel=0
pkgdesc="DNSSEC extensions to Net::DNS"
url="https://metacpan.org/pod/Net::DNS::SEC"
arch="all"
license="MIT"
depends="perl perl-net-dns"
makedepends="perl-dev openssl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/N/NL/NLNETLABS/Net-DNS-SEC-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$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
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}


sha512sums="44f1bbcd9b5c8759ccbb8a9c40efb3d0533a991d6d9aec63ec8b1347a4cbf314470efebe4e5bc59fb19427405a4b8d41682c5231427783cace8f9779bccdc893  Net-DNS-SEC-1.18.tar.gz"