Commit | Line | Data |
---|---|---|
8a43aa94 H |
1 | # Generated by Xyne::Arch::CPAN 0.07 |
2 | ||
3 | pkgname=perl-dns-zoneparse | |
4 | pkgver=1.100.0 | |
5 | pkgrel=1 | |
6 | pkgdesc="Parse and manipulate DNS Zone Files." | |
7 | arch=('i686' 'x86_64') | |
8 | url="http://search.cpan.org/dist/DNS-ZoneParse/" | |
9 | license=('unknown') | |
10 | source=('http://search.cpan.org/CPAN/authors/id/M/MS/MSCHILLI/DNS-ZoneParse-1.10.tar.gz') | |
11 | md5sums=('663b517d731f939742550fa45118650e') | |
12 | sha256sums=('b96db6acf39bde6578dc3b83caa2e85fa4f5481c110ede83f1f95e1a3fb4124c') | |
ae9e32a0 | 13 | depends=('perl') |
8a43aa94 H |
14 | makedepends=('perl-extutils-makemaker') |
15 | options=(!emptydirs) | |
16 | ||
17 | build() { | |
18 | _dir=$(find $srcdir -maxdepth 2 -type f -name 'Makefile.PL') | |
19 | if [ ! -z "$_dir" ]; then | |
20 | cd $(dirname "$_dir") | |
21 | PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 | |
22 | make || return 1 | |
23 | make install DESTDIR="${pkgdir}" || return 1 | |
24 | ||
25 | else | |
26 | _dir=$(find $srcdir -maxdepth 2 -type f -name 'Build.PL') | |
27 | if [ ! -z "$_dir" ]; then | |
28 | cd $(dirname "$_dir") | |
29 | PERL_MM_USE_DEFAULT=1 perl Build.PL INSTALLDIRS=vendor || return 1 | |
30 | ./Build || return 1 | |
31 | ./Build install destdir=${pkgdir} || return 1 | |
32 | ||
33 | else | |
34 | echo "error: failed to detect build method for $pkgname" | |
35 | echo "you may be able to fix this by editing the PKGBUILD" | |
36 | return 1 | |
37 | fi fi | |
38 | ||
39 | # remove perllocal.pod and .packlist | |
40 | find ${pkgdir} -name perllocal.pod -delete | |
41 | find ${pkgdir} -name .packlist -delete | |
42 | } | |
43 | ||
44 | # vim:set ts=2 sw=2 et: | |
45 |