# Contributor: Leonardo Arena # Maintainer: Leonardo Arena pkgname=perl-net-dns _realname=Net-DNS pkgver=1.13 pkgrel=0 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="ac42d5b5d1849de11813404b9915f2b54cc4d44e2f6a52c8c5c714ae30bab594b2d27701957238c1dbb09544320822c25f19ff50ce33210c289379aa67400636 Net-DNS-1.13.tar.gz"