Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

perl-apache-dbi

By: a guest on Feb 24th, 2012  |  syntax: None  |  size: 1.10 KB  |  hits: 22  |  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: Elis Hughes <elishughes@googlemail.com> Kasper Laudrup <laudrup@stacktrace.dk>
  2. _perlmod=Apache-DBI
  3. pkgname=perl-apache-dbi
  4. pkgver=1.11
  5. pkgrel=1
  6. pkgdesc="Apache::DBI - Initiate a persistent database connection"
  7. arch=('any')
  8. url="http://search.cpan.org/~pgollucci/Apache-DBI/"
  9. license=('GPL' 'PerlArtistic')
  10. depends=('perl-dbi')
  11. options=('!emptydirs')
  12. source=("http://search.cpan.org/CPAN/authors/id/P/PH/PHRED/$_perlmod-$pkgver.tar.gz")
  13. md5sums=('b973fdf5292bbe6caa38a664d0a83f0b')
  14.  
  15. build() {
  16.   cd "$srcdir/$_perlmod-$pkgver"
  17.  
  18.   # Setting these env variables overwrites any command-line-options we don't want...
  19.   export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps \
  20.     PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \
  21.     PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
  22.     MODULEBUILDRC=/dev/null
  23.  
  24.   { /usr/bin/perl Makefile.PL &&
  25.     make &&
  26.     make test; } || return 1
  27.  
  28.   # remove perllocal.pod and .packlist
  29.   find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
  30. }
  31.  
  32. package() {
  33.   cd "$srcdir/$_perlmod-$pkgver"
  34.   make install DESTDIR="$pkgdir/"
  35. }