Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 2nd, 2010  |  syntax: Bash  |  size: 1.05 KB  |  hits: 127  |  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: Piotr Beling <qwak@w8.pl>
  2. # Contributor: Wael Nasreddine <wael@phoenixlinux.org>
  3. # Contributor: Jakub FiĊĦer <mr@MikyMaus.org>
  4. # Maintainer: Guillermo A. Amaral <me@guillermoamaral.com> (thewonka)
  5.  
  6. pkgname='perl-unix-syslog'
  7. pkgver='1.1'
  8. pkgrel='1'
  9. pkgdesc='Perl interface to the UNIX syslog calls.'
  10. url='http://search.cpan.org/~mharnisch/Unix-Syslog-1.1/'
  11. arch=('i686' 'x86_64')
  12. depends=('perl>=5.8.4')
  13. source=("http://search.cpan.org/CPAN/authors/id/M/MH/MHARNISCH/Unix-Syslog-${pkgver}.tar.gz")
  14. md5sums=('73d78e309fe9508ffc9a54d84d79aac9')
  15. install="${pkgname}.install"
  16.  
  17. build()
  18. {
  19.  
  20.         cd ${startdir}/src/Unix-Syslog-${pkgver}
  21.  
  22.         eval $(perl -V:archname)
  23.  
  24.         perl Makefile.PL INSTALLARCHLIB=/usr/lib/perl5/current/${archname} INSTALLSITELIB=/usr/lib/perl5/site_perl/current INSTALLSITEARCH=/usr/lib/perl5/site_perl/current/${archname}
  25.  
  26.         make || return 1
  27.  
  28.         make DESTDIR=${startdir}/pkg install || return 1
  29.  
  30.         find ${startdir}/pkg -name '.packlist' -exec rm -f {} \;
  31.         find ${startdir}/pkg -name 'perllocal.pod' -exec rm -f {} \;
  32.  
  33. }