Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

PKGBUILD

By: a guest on Jan 24th, 2013  |  syntax: Bash  |  size: 1.40 KB  |  views: 25  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Contributor: Viliam Pucik <viliam.pucik@gmail.com>
  2. # Generator  : CPANPLUS::Dist::Arch 1.19
  3.  
  4. pkgname='perl-statistics-basic'
  5. pkgver='1.6607'
  6. pkgrel='1'
  7. pkgdesc="A collection of very basic statistics modules"
  8. arch=('any')
  9. license=('PerlArtistic' 'GPL')
  10. options=('!emptydirs')
  11. depends=('perl>=5.006' 'perl-number-format>=1.42')
  12. makedepends=()
  13. url='http://search.cpan.org/dist/Statistics-Basic'
  14. source=("http://search.cpan.org/CPAN/authors/id/J/JE/JETTERO/Statistics-Basic-${pkgver}.tar.gz")
  15. md5sums=('6d0857688035c62a6979af9b15dcb030')
  16. sha512sums=('6ce225e41adaa6eeb1da61b916909094080dc917be6dfcf6b87cc19ad68ee069553a8279a8c2ac5b67bb8e848c7bb30b802f8417b552237222fb0863ccccf8ca')
  17. _distdir="${srcdir}/Statistics-Basic-${pkgver}"
  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 "$_distdir"
  27.     /usr/bin/perl Makefile.PL
  28.     make
  29.   )
  30. }
  31.  
  32. check() {
  33.   cd "$_distdir"
  34.   ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
  35.     make test
  36.   )
  37. }
  38.  
  39. package() {
  40.   cd "$_distdir"
  41.   make install
  42.   find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
  43. }
  44.  
  45. # Local Variables:
  46. # mode: shell-script
  47. # sh-basic-offset: 2
  48. # End:
  49. # vim:set ts=2 sw=2 et: