4 pkgdesc="Pegex Parser Generator"
6 url="http://search.cpan.org/dist/Pegex/"
8 depends=('perl>=5.8.3')
9 makedepends=('perl-extutils-makemaker>=6.420.0')
10 provides=('perl-pegex-ast' 'perl-pegex-base=0.150.0' 'perl-pegex-compiler' 'perl-pegex-compiler-bootstrap' 'perl-pegex-compiler-grammar' 'perl-pegex-grammar' 'perl-pegex-receiver')
12 source=('http://search.cpan.org/CPAN/authors/id/I/IN/INGY/Pegex-0.11.tar.gz')
13 md5sums=('13b5924949d3e468420f41ee1fff1d58')
16 _dir=$(find $srcdir -maxdepth 2 -type f -name 'Makefile.PL')
17 if [ ! -z "$_dir" ]; then
19 PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
21 make install DESTDIR="${pkgdir}"
24 _dir=$(find $srcdir -maxdepth 2 -type f -name 'Build.PL')
25 if [ ! -z "$_dir" ]; then
27 PERL_MM_USE_DEFAULT=1 perl Build.PL INSTALLDIRS=vendor
29 ./Build install destdir=${pkgdir}
32 echo "error: failed to detect build method for $pkgname"
33 echo "you may be able to fix this by editing the PKGBUILD"
37 # remove perllocal.pod and .packlist
38 find ${pkgdir} -name perllocal.pod -delete
39 find ${pkgdir} -name .packlist -delete