summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e9d2ef06a5837d24b75f9609ce288b417d557bdb (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
42
43
44
45
46
47
48
49
50
51
# Maintainer: rafaelff <rafaelff@gnome.org>

pkgname=direvent-git
pkgver=5.1.90.r144.d744882
pkgrel=1
pkgdesc="Daemon that monitors events in the file system directories"
arch=('x86_64')
url="http://www.gnu.org.ua/software/direvent/"
license=("GPL")
conflicts=('direvent')
provides=('direvent')
depends=('glibc')
makedepends=('git' 'rsync')
source=(git://git.gnu.org.ua/direvent.git
        git://git.gnu.org.ua/grecs.git)
md5sums=('SKIP' 'SKIP')

pkgver() {
  cd direvent
    
  v=`grep AC_INIT configure.ac | cut -d[ -f3 | cut -d] -f1` # get version
  r=`git rev-list --count HEAD` # get git revision
  h=`git rev-parse --short HEAD` # get sha1's short output
  printf "$v.r$r.$h"
}

prepare() {
  cd direvent

  git submodule init
  git config submodule.grecs.url $srcdir/grecs
  git submodule update

  ./bootstrap
}

build() {
  cd direvent
  ./configure --prefix=/usr
  make
}

check() {
  cd direvent
  make check
}

package() {
  cd direvent
  make DESTDIR="$pkgdir/" install
}