blob: 6606bb974f711cd2ac00d22f11c9e308395ba056 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# $Id: PKGBUILD 69436 2012-04-16 10:50:17Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Roberto Alsina <ralsina@kde.org>
# Contributor: scj <scj(at)archlinux(dot)us>
pkgname=incron
pkgver=0.5.10
pkgrel=1
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
source=("http://inotify.aiken.cz/download/incron/$pkgname-$pkgver.tar.gz"
'incron.init')
options=('emptydirs')
md5sums=('67f8b671db8169edccc8ef11c7d2c8be'
'648e1ca1a4b1e624401d9d71aa3756b3')
build() {
cd "${srcdir}"/$pkgname-$pkgver
sed -i '1,1i#include <unistd.h>' inotify-cxx.cpp icd-main.cpp
sed -i '1,1i#include <stdio.h>' 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 -Dm0755 "${srcdir}"/incron.init "${pkgdir}"/etc/rc.d/incrond
}
|