# Contributor: Leonardo Arena # Maintainer: Leonardo Arena pkgname=perl-net-dns _realname=Net-DNS pkgver=1.11 pkgrel=2 pkgdesc="Perl interface to the DNS resolver" url="http://www.net-dns.org/" arch="noarch" license="GPL+ or Artistic" depends="perl" makedepends="perl-dev" install="" subpackages="$pkgname-doc" checkdepends="perl-digest-hmac perl-net-libidn perl-test-pod" source="http://www.cpan.org/authors/id/N/NL/NLNETLABS/${_realname}-$pkgver.tar.gz" builddir="$srcdir/$_realname-$pkgver" 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 } package() { cd "$builddir" make DESTDIR="$pkgdir" install # creates file collision among perl modules find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } check() { cd "$builddir" make test } sha512sums="b6539e462e39a00f8a00f4eeddbb496207094e36b37cd05799cb34435c8d8555173cbcc3ecfaff13068b11108cef453e0de8f99544203a3303f6d77739467be1 Net-DNS-1.11.tar.gz"