updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / klogwatch / PKGBUILD
blob73affba585705bb789e2b6f888116d18b83ba3fc
1 # Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
2 # Contributor: hpestilence <hpestilence@gmail.com>
4 pkgname=klogwatch
5 pkgver=2.0.3
6 pkgrel=2
7 arch=(i686 x86_64)
8 pkgdesc="Monitors a kernel log file for Netfilter log lines and reports them"
9 url="http://klogwatch.sourceforge.net/"
10 license=('GPL')
11 depends=('kdelibs3')
12 options=('libtool')
13 source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz)
14 md5sums=('921bf810a7e555818f7a8e13e30ff58f')
16 build() {
17   cd $srcdir/$pkgname-$pkgver
19   [ $NOEXTRACT -eq 1 ] || ./configure --prefix=/usr \
20     --datadir=/opt/kde/share \
21     --mandir=/usr/share/man
23   sed -i '1,2i#include <stdlib.h>' klogwatch/kloglist.cpp 
25   make KDELIB=/opt/kde/lib || return 1
26   make DESTDIR=$startdir/pkg install || return 1
28   cp $srcdir/$pkgname-$pkgver/$pkgname/klogwatch.desktop $pkgdir/opt/kde/share/applications/kde/