From: Harvie Date: Fri, 14 Jan 2011 16:07:13 +0000 (+0100) Subject: Added perl DNS::ZoneParse X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=8a43aa94a481d730381ea5dec59807d1aa6962dd;p=mirrors%2FArchLinux-Packages.git Added perl DNS::ZoneParse --- diff --git a/perl-dns-zoneparse/PKGBUILD b/perl-dns-zoneparse/PKGBUILD new file mode 100644 index 0000000..2b63ce6 --- /dev/null +++ b/perl-dns-zoneparse/PKGBUILD @@ -0,0 +1,45 @@ +# Generated by Xyne::Arch::CPAN 0.07 + +pkgname=perl-dns-zoneparse +pkgver=1.100.0 +pkgrel=1 +pkgdesc="Parse and manipulate DNS Zone Files." +arch=('i686' 'x86_64') +url="http://search.cpan.org/dist/DNS-ZoneParse/" +license=('unknown') +source=('http://search.cpan.org/CPAN/authors/id/M/MS/MSCHILLI/DNS-ZoneParse-1.10.tar.gz') +md5sums=('663b517d731f939742550fa45118650e') +sha256sums=('b96db6acf39bde6578dc3b83caa2e85fa4f5481c110ede83f1f95e1a3fb4124c') +depends=('perl' 'perl-storable>=0.407.0') +makedepends=('perl-extutils-makemaker') +options=(!emptydirs) + +build() { + _dir=$(find $srcdir -maxdepth 2 -type f -name 'Makefile.PL') + if [ ! -z "$_dir" ]; then + cd $(dirname "$_dir") + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 + make || return 1 + make install DESTDIR="${pkgdir}" || return 1 + + else + _dir=$(find $srcdir -maxdepth 2 -type f -name 'Build.PL') + if [ ! -z "$_dir" ]; then + cd $(dirname "$_dir") + PERL_MM_USE_DEFAULT=1 perl Build.PL INSTALLDIRS=vendor || return 1 + ./Build || return 1 + ./Build install destdir=${pkgdir} || return 1 + + else + echo "error: failed to detect build method for $pkgname" + echo "you may be able to fix this by editing the PKGBUILD" + return 1 + fi fi + + # remove perllocal.pod and .packlist + find ${pkgdir} -name perllocal.pod -delete + find ${pkgdir} -name .packlist -delete +} + +# vim:set ts=2 sw=2 et: +