# $Id: PKGBUILD 2071 2009-09-08 10:23:55Z spupykin $ # Maintainer: Sergej Pupykin # Contributor: hpestilence pkgname=klogwatch pkgver=2.0.3 pkgrel=2 arch=(i686 x86_64) pkgdesc="Monitors a kernel log file for Netfilter log lines and reports them" url="http://klogwatch.sourceforge.net/" license=("GPL") depends=('kdelibs3') options=('libtool') source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz) md5sums=('921bf810a7e555818f7a8e13e30ff58f') build() { cd $startdir/src/$pkgname-$pkgver [ $NOEXTRACT -eq 1 ] || ./configure --prefix=/usr --datadir=/opt/kde/share --mandir=/usr/share/man sed -i '1,2i#include ' klogwatch/kloglist.cpp make KDELIB=/opt/kde/lib || return 1 make DESTDIR=$startdir/pkg install || return 1 cp $startdir/src/$pkgname-$pkgver/$pkgname/klogwatch.desktop $startdir/pkg/opt/kde/share/applications/kde/ }