# $Id: PKGBUILD 90677 2013-05-13 14:26:58Z spupykin $ # Maintainer: Sergej Pupykin # Contributor: Roberto Alsina # Contributor: scj pkgname=incron pkgver=0.5.10 pkgrel=4 pkgdesc="Like the regular cron but is driven by filesystem events instead of time periods" arch=('i686' 'x86_64' 'mips64el') url="http://incron.aiken.cz/" license=('GPL') depends=('gcc-libs' 'bash') install=incron.install options=('emptydirs') source=("http://inotify.aiken.cz/download/incron/$pkgname-$pkgver.tar.gz" 'incrond.service') md5sums=('67f8b671db8169edccc8ef11c7d2c8be' '859a90af9e4efe40db381ea07167a66a') build() { cd "${srcdir}"/$pkgname-$pkgver sed -i '1,1i#include ' inotify-cxx.cpp icd-main.cpp 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 } package() { cd "${srcdir}"/$pkgname-$pkgver install -d "${pkgdir}"/usr/share/man "${pkgdir}"/usr/{s,}bin make PREFIX="${pkgdir}"/usr \ MANPATH="${pkgdir}"/usr/share/man \ USERDATADIR="${pkgdir}"/var/spool/incron \ CFGDIR="${pkgdir}"/etc \ SYSDATADIR="${pkgdir}"/etc/incron.d install install -Dm0644 "${srcdir}/incrond.service" "${pkgdir}/usr/lib/systemd/system/incrond.service" }