#Maintainer: George Vlahavas pkgname=perl-net-dns pkgver=0.65 pkgrel=1gv arch=i486 source=(http://search.cpan.org/CPAN/authors/id/O/OL/OLAF/Net-DNS-$pkgver.tar.gz) docs=("readme" "install" "copying" "changelog*" "authors" "news" "todo" "license" "maintainers" "copyright.pod") slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "perl-net-dns (Perl interface to the DNS resolver)" "Net::DNS is a collection of Perl modules that act as a Domain Name" "System (DNS) resolver. It allows the programmer to perform DNS queries" "that are beyond the capabilities of gethostbyname and gethostbyaddr." ) build() { cd $startdir/src/Net-DNS-$pkgver echo y | perl Makefile.PL || exit 1 make OPTIMIZE="$CFLAGS" || exit 1 make install INSTALLDIRS=vendor DESTDIR=$startdir/pkg || exit 1 # Remove perllocal.pod and .packlist if present in the package ( for i in perllocal.pod .packlist; do find $startdir/pkg -name "$i" -exec rm -rf {} \; done ) || exit 1 }