# Contributor: Leonardo Arena # Maintainer: Leonardo Arena pkgname=perl-parse-recdescent _realname=Parse-RecDescent pkgver=1.967014 pkgrel=1 pkgdesc="Generate Recursive-Descent Parsers" url="http://search.cpan.org/~dconway/Parse-RecDescent-1.96.0/" arch="noarch" license="Unknown" depends="perl" makedepends="perl-dev" checkdepends="perl-test-pod perl-test-warn" install= subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/J/JT/JTBRAUN/$_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 || return 1 } build() { cd "$builddir" export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` make || return 1 } package() { cd "$builddir" make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } check() { cd "$builddir" make test } sha512sums="bdb369cc8ef47f428d52192271d57baaa88db986f4765ef9262bcb82fda1e619102387ce1828998057adb5607e6def667ba557766af470e2ea2cbe00ee31d16a Parse-RecDescent-1.967014.tar.gz"