# 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.06
pkgrel=0
pkgdesc="DNSSEC extensions to Net::DNS"
url="http://search.cpan.org/dist/Net-DNS-SEC/"
arch="all"
license="MIT"
cpandepends="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 libressl-dev"
cpanmakedepends=""
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/N/NL/NLNETLABS/$_pkgreal-$pkgver.tar.gz"

builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	default_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
}

check() {
        cd "$builddir"
        make test
}

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

sha512sums="7fa7c902149c1ed4693f8b0a274aff9e636b0143512d9469ab87633504ba16ef1519473e241da240bfd0faeb789547f404f59fda848cc929f199303c64606c76  Net-DNS-SEC-1.06.tar.gz"
