Advertisement
Guest User

perl-text-csv-xs-1.07.PKGBUILD

a guest
May 4th, 2014
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.47 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.27
  3.  
  4. pkgname='perl-text-csv-xs'
  5. pkgver='1.07'
  6. pkgrel='1'
  7. pkgdesc="comma-separated values manipulation routines"
  8. arch=('i686' 'x86_64')
  9. license=('PerlArtistic' 'GPL')
  10. options=('!emptydirs')
  11. depends=('perl>=0')
  12. makedepends=()
  13. url='http://search.cpan.org/dist/Text-CSV_XS'
  14. source=("http://search.cpan.org/CPAN/authors/id/H/HM/HMBRAND/Text-CSV_XS-${pkgver}.tgz")
  15. md5sums=('1fc30aee0e1c50711b0f8ad1ab0bb0c3')
  16. sha512sums=('61400ebd783f3db4c9f41b54624831830fa67e031a9a44a3acee23246b82cec34ee0eaf5b0302fd62df3a21b998a5f51d70fb2227c56ab9599792a6919dbc120')
  17. _distdir="Text-CSV_XS-${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 "$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