blob: 732a4eee7ad5fd457a7e8dfbd86b14e901e450cf (
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
|
# $Id: PKGBUILD 1515 2009-08-24 21:08:19Z 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.9
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')
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 <stdio.h>' 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
}
|