updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / openvas-libraries / PKGBUILD
blob59a2b34635317726c6edaf4b21b976644bef4c39
1 # Maintainer: Vlatko Kosturjak <kost@linux.hr>, Contributor: Mike Roberts <noodlesgc@gmail.com> - originally by: Ermak <ermak@email.it>
2 pkgname=openvas-libraries
3 pkgver=4.0.5
4 pkgrel=3
5 pkgdesc="The OpenVAS libraries"
6 arch=('i686' 'x86_64')
7 url="http://www.openvas.org/"
8 license=('GPL')
9 depends=('gnutls' 'libpcap' 'gpgme' 'cmake' 'bison')
10 makedepends=('pkg-config')
11 source=(http://wald.intevation.org/frs/download.php/872/$pkgname-$pkgver.tar.gz openvas-nowerror.patch openvas-gnutls.patch)
12 md5sums=('88152081a0a0d2e8dfd63538999f56ef' '47b8310bbd97b0ef491414d26ddb8f03' '14b2a7c330f647d27e9978bd7167119c')
13 CFLAGS="-Wno-error"
15 build() {
16   cd "$srcdir/$pkgname-$pkgver"
18   patch -p1 < "$startdir/src/openvas-nowerror.patch"
19   patch -p1 < "$startdir/src/openvas-gnutls.patch"
21   cmake -DCMAKE_INSTALL_PREFIX=/usr -DSYSCONFDIR=/etc -DLOCALSTATEDIR=/var .
22   
23   make CC=--disable-werror || return 1
24   make DESTDIR="$pkgdir/" install
27 # vim:set ts=2 sw=2 et: