summaryrefslogtreecommitdiff
path: root/community/incron/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-09-15 23:14:42 +0000
committerroot <root@rshg054.dnsready.net>2011-09-15 23:14:42 +0000
commit062d1ba2c4d5de52d97f339c5a3ac1199b8533f6 (patch)
treebd00d2e476e1761b3771b1849a3a207dd8cb5c57 /community/incron/PKGBUILD
parentd5effc9aadfb9ed5890376ca9497eef52fafcf83 (diff)
Thu Sep 15 23:14:42 UTC 2011
Diffstat (limited to 'community/incron/PKGBUILD')
-rw-r--r--community/incron/PKGBUILD36
1 files changed, 20 insertions, 16 deletions
diff --git a/community/incron/PKGBUILD b/community/incron/PKGBUILD
index bc8e83ab3..c64ad3e44 100644
--- a/community/incron/PKGBUILD
+++ b/community/incron/PKGBUILD
@@ -1,36 +1,40 @@
-# $Id: PKGBUILD 1515 2009-08-24 21:08:19Z spupykin $
+# $Id: PKGBUILD 55563 2011-09-14 10:20:14Z andrea $
# 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
+pkgrel=2
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')
+license=('GPL')
+depends=('gcc-libs' 'bash')
install=incron.install
-source=(http://inotify.aiken.cz/download/incron/$pkgname-$pkgver.tar.gz \
- incron.init)
-options=(emptydirs)
+source=("http://inotify.aiken.cz/download/incron/$pkgname-$pkgver.tar.gz"
+ 'incron.init')
+options=('emptydirs')
md5sums=('a285b9e14af7bf9f9524fe051a06255f'
'648e1ca1a4b1e624401d9d71aa3756b3')
build() {
- cd $startdir/src/$pkgname-$pkgver
+ cd "${srcdir}"/$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
+ install -D -m 755 "${srcdir}"/incron.init "${pkgdir}"/etc/rc.d/incrond
+ install -d "${pkgdir}"/usr/share/man "${pkgdir}"/usr/{s,}bin
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
+}
- 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
+package() {
+ cd "${srcdir}"/$pkgname-$pkgver
+ make PREFIX="${pkgdir}"/usr \
+ MANPATH="${pkgdir}"/usr/share/man \
+ USERDATADIR="${pkgdir}"/var/spool/incron \
+ CFGDIR="${pkgdir}"/etc \
+ SYSDATADIR="${pkgdir}"/etc/incron.d install
}