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

perl-spreadsheet-writeexcel 2.38-2

By: a guest on Mar 14th, 2013  |  syntax: None  |  size: 1.30 KB  |  views: 30  |  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. # PKGBUILD generated by pacpan
  2. pkgname=perl-spreadsheet-writeexcel
  3. _pkgname='Spreadsheet-WriteExcel'
  4. pkgver=2.38
  5. pkgrel=2
  6. pkgdesc="Spreadsheet::WriteExcel is a Perl module which can be used to create native Excel binary files"
  7. arch=(any)
  8. license=(GPL)
  9. url="http://search.cpan.org/dist/Spreadsheet-WriteExcel/"
  10. depends=('perl-parse-recdescent' 'perl-file-temp' 'perl-ole-storage-lite')
  11. options=(!emptydirs)
  12.  
  13. source=(http://search.cpan.org/CPAN/authors/id/J/JM/JMCNAMARA/${_pkgname}-${pkgver}.tar.gz)
  14. md5sums=('2eb51216ce1ba38e0b9d8fe1e38cf4c9')
  15. sha512sums=('ab02e155d83a9e14d4494f1e971dc36488b5093c0d8f4c8ab9e25127f322571c1768ae177eec4401c590bcb09d665829d9e1c6c5ee060a36fdfbe7f0cc85aea4')
  16. _distdir="${srcdir}/${_pkgname}-${pkgver}"
  17.  
  18. build() {
  19.   ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""                 \
  20.       PERL_AUTOINSTALL=--skipdeps                            \
  21.       PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'"     \
  22.       PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
  23.       MODULEBUILDRC=/dev/null
  24.  
  25.     cd "$_distdir"
  26.     /usr/bin/perl Makefile.PL
  27.     make
  28.   )
  29. }
  30.  
  31. check() {
  32.   cd "$_distdir"
  33.   ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
  34.     make test
  35.   )
  36. }
  37.  
  38. package() {
  39.   cd "$_distdir"
  40.   make install
  41.   find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
  42. }