Advertisement
Guest User

perl-critic-1.121

a guest
Nov 29th, 2013
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.77 KB | None | 0 0
  1. # 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>
  2. # Generator : CPANPLUS::Dist::Arch 1.25
  3.  
  4. pkgname='perl-critic'
  5. pkgver='1.121'
  6. pkgrel='1'
  7. pkgdesc="Critique Perl source code for best-practices."
  8. arch=('any')
  9. license=('PerlArtistic' 'GPL')
  10. options=('!emptydirs')
  11. 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')
  12. makedepends=('perl-test-deep')
  13. url='http://search.cpan.org/dist/Perl-Critic'
  14. source=('http://search.cpan.org/CPAN/authors/id/T/TH/THALJEF/Perl-Critic-1.121.tar.gz')
  15. md5sums=('d14676d579c4fbc2736106f9863d4d1f')
  16. sha512sums=('86e247a43455fc739c2b11b36eeaf8ab8d3680c42a41308638b528c54c58edec9bdd15ee60e5f47084b5ddaa336b59b09c23a7328ecbd585bba180171cbde98d')
  17. _distdir="Perl-Critic-1.121"
  18.  
  19. build() {
  20. ( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \
  21. PERL_AUTOINSTALL=--skipdeps \
  22. PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \
  23. PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
  24. MODULEBUILDRC=/dev/null
  25.  
  26. cd "$srcdir/$_distdir"
  27. /usr/bin/perl Makefile.PL
  28. make
  29. )
  30. }
  31.  
  32. check() {
  33. cd "$srcdir/$_distdir"
  34. ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
  35. make test
  36. )
  37. }
  38.  
  39. package() {
  40. cd "$srcdir/$_distdir"
  41. make install
  42.  
  43. find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
  44. }
  45.  
  46. # Local Variables:
  47. # mode: shell-script
  48. # sh-basic-offset: 2
  49. # End:
  50. # vim:set ts=2 sw=2 et:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement