updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / libprelude / PKGBUILD
blob4a3806408655c23e9616c5c9ee0665df47636eac
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/-.*//'`
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
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
30 md5sums=('a5bb76538d240e5fac5f6ab0b7fabfe5')