# $Id: PKGBUILD 1511 2009-08-24 20:59:33Z spupykin $ # Maintainer: Sergej Pupykin # Contributor: Roberto Alsina # Contributor: scj pkgname=incron pkgver=0.5.9 pkgrel=1 pkgdesc="Like the regular cron but is driven by filesystem events instead of time periods" arch=('i686' 'x86_64') url="http://incron.aiken.cz/" license=("GPL") depends=('gcc-libs') install=incron.install source=(http://inotify.aiken.cz/download/incron/$pkgname-$pkgver.tar.gz \ incron.init) options=(emptydirs) md5sums=('a285b9e14af7bf9f9524fe051a06255f' '648e1ca1a4b1e624401d9d71aa3756b3') build() { cd $startdir/src/$pkgname-$pkgver install -D -m 755 $startdir/incron.init $startdir/pkg/etc/rc.d/incrond mkdir -p $startdir/pkg/usr/share/man $startdir/pkg/usr/bin $startdir/pkg/usr/sbin sed -i '1,1i#include ' icd-main.cpp inotify-cxx.cpp usertable.cpp appargs.cpp sed -i 's|strchr(s,|(char*)strchr(s,|' incroncfg.cpp make || return 1 make PREFIX=$startdir/pkg/usr \ MANPATH=$startdir/pkg/usr/share/man \ USERDATADIR=$startdir/pkg/var/spool/incron \ CFGDIR=$startdir/pkg/etc \ SYSDATADIR=$startdir/pkg/etc/incron.d install }