1 # Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
2 # Contributor: hpestilence <hpestilence@gmail.com>
8 pkgdesc="Monitors a kernel log file for Netfilter log lines and reports them"
9 url="http://klogwatch.sourceforge.net/"
13 source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz)
14 md5sums=('921bf810a7e555818f7a8e13e30ff58f')
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/