aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-net-dns-sec/APKBUILD
blob: 8bb6237542f2eda03dc33cd1642a894fc538a5ca (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
# 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.15
pkgrel=0
pkgdesc="DNSSEC extensions to Net::DNS"
url="https://metacpan.org/pod/Net::DNS::SEC"
arch="all"
license="MIT"
depends="perl-crypt-openssl-dsa perl-net-dns perl-crypt-openssl-rsa
	perl-crypt-openssl-random perl-digest-bubblebabble perl-mime-base32
	perl-crypt-openssl-bignum"
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="cd59c487981115754c9f1d32592506a0e1132beaf227e731ef53dc4e885dd25526d43be25d3bede83091c8d4d64b7798cdcff2a02a3603a6ff42c7d23a84c43e  Net-DNS-SEC-1.15.tar.gz"