# Contributor: John D Jones III <j[nospace]n[nospace]b[nospace]e[nospace]k[nospace]1972 -_AT_- the domain name google offers a mail service at ending in dot com>
# Generator : CPANPLUS::Dist::Arch 1.25
pkgname='perl-critic'
pkgver='1.121'
pkgrel='1'
pkgdesc="Critique Perl source code for best-practices."
arch=('any')
license=('PerlArtistic' 'GPL')
options=('!emptydirs')
depends=('perl-b-keywords>=1.05' 'perl-config-tiny>=2' 'perl-email-address>=1.889' 'perl-exception-class>=1.23' 'perl-io-string' 'perl-list-moreutils>=0.19' 'perl-pod-spell>=1' 'perl-ppi>=1.215' 'perl-ppix-regexp>=0.027' 'perl-ppix-utilities' 'perl-readonly>=1.03' 'perl-string-format>=1.13' 'perl-task-weaken' 'perl-tidy')
makedepends=('perl-test-deep')
url='http://search.cpan.org/dist/Perl-Critic'
source=('http://search.cpan.org/CPAN/authors/id/T/TH/THALJEF/Perl-Critic-1.121.tar.gz')
md5sums=('d14676d579c4fbc2736106f9863d4d1f')
sha512sums=('86e247a43455fc739c2b11b36eeaf8ab8d3680c42a41308638b528c54c58edec9bdd15ee60e5f47084b5ddaa336b59b09c23a7328ecbd585bba180171cbde98d')
_distdir="Perl-Critic-1.121"
build() {
( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \
PERL_AUTOINSTALL=--skipdeps \
PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \
PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
MODULEBUILDRC=/dev/null
cd "$srcdir/$_distdir"
/usr/bin/perl Makefile.PL
make
)
}
check() {
cd "$srcdir/$_distdir"
( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
make test
)
}
package() {
cd "$srcdir/$_distdir"
make install
find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
}
# Local Variables:
# mode: shell-script
# sh-basic-offset: 2
# End:
# vim:set ts=2 sw=2 et: