# Automatically generated by apkbuild-cpan, template 4
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-net-dns-sec
pkgver=1.26
pkgrel=0
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Net-DNS-SEC
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>3"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/N/NL/NLNETLABS/Net-DNS-SEC-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL \
		INSTALLDIRS=vendor \
		NO_PACKLIST=1 \
		NO_PERLLOCAL=1
	make
}

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

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
f53416c28488edfff248c79570d87599e3785d8ae0cd30746dfbc6468bce68421bf95be405685d8d9dd8e3a69a6634da17617fb48d8c3bd755944dd2e038aaf9  Net-DNS-SEC-1.26.tar.gz
"
