This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

PKGBUILD

By: a guest on Aug 13th, 2010  |  syntax: None  |  size: 1.00 KB  |  views: 66  |  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: William Rea <sillywilly@gmail.com>
  2. pkgname=libprelude
  3. pkgver=1.0.0
  4. pkgrel=1
  5. pkgdesc="Provides the framework for using the Prelude system"
  6. arch=('i686' 'x86_64')
  7. url="http://www.prelude-ids.org"
  8. options=('!libtool')
  9. license="GPL"
  10. depends=('gnutls' 'python' 'perl')
  11. makedepends=('swig')
  12. source=(http://www.prelude-ids.org/download/releases/$pkgname/$pkgname-$pkgver.tar.gz)
  13. _perlver=`pacman -Q perl | awk '{print $2}' | sed -e 's/-.*//'`
  14.  
  15. build() {
  16.   cd $startdir/src/libprelude-$pkgver
  17.   ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
  18.   make || return 1
  19.   make DESTDIR=$startdir/pkg install
  20.  
  21.   find $startdir/pkg -name '.packlist' -exec rm {} \;
  22.   rm -r $startdir/pkg/usr/lib/perl5/core_perl
  23.   #rm -r $startdir/pkg/usr/lib/ruby
  24.  
  25.   mkdir $startdir/pkg/usr/lib/perl5/vendor_perl
  26.   mv $startdir/pkg/usr/lib/perl5/site_perl/auto/* \
  27.      $startdir/pkg/usr/lib/perl5/vendor_perl
  28.   rm -r $startdir/pkg/usr/lib/perl5/site_perl
  29. }
  30. md5sums=('a5bb76538d240e5fac5f6ab0b7fabfe5')
clone this paste RAW Paste Data