summaryrefslogtreecommitdiff
path: root/pcr/fsniper/PKGBUILD
blob: 49d04f200d22b5f8a90a61e6fe7e2ce72080b7a4 (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
# Maintainer: David P. <megver83@parabola.nu>
# Contributor: Javier Tiá <javier dot tia at gmail dot com>
# Contributor: András Wacha <wacha dot andras at ttk dot mta dot hu>

pkgname=fsniper
pkgver=1.3.1
pkgrel=3
pkgdesc='Daemon to run scripts based on changes in files monitored by inotify'
url='http://projects.l3ib.org/fsniper/'
license=('GPL3')
depends=('pcre' 'file')
makedepends=('autoconf' 'automake' 'libtool' 'gcc')
source=("http://projects.l3ib.org/fsniper/files/${pkgname}-${pkgver}.tar.gz"
        "wait3_argument.patch")
sha256sums=('e65a34221fc05eb7ececcd2fb783e3418de032f89082e09be3a8f75f6b056e6b'
            '60e8390538728b463845c595cb035529fbaaa311a54b6a12eaee2c53688de55d')
arch=('armv7h' 'i686' 'x86_64')

prepare() {
  cd ${srcdir}/${pkgname}-${pkgver}
  patch -p1 <${srcdir}/wait3_argument.patch
}

build() {
  cd ${srcdir}/${pkgname}-${pkgver}

  ./configure --prefix=/usr
  make || return 1
}

package() {
  cd ${srcdir}/${pkgname}-${pkgver}

  make DESTDIR=${pkgdir} install

  install -m644 -D ${srcdir}/${pkgname}-${pkgver}/README \
                   ${pkgdir}/usr/share/${pkgname}/README
  install -m644 -D ${srcdir}/${pkgname}-${pkgver}/example.conf \
                   ${pkgdir}/usr/share/${pkgname}/example.conf
}