summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8e9631c504d6662518c4d0fca64da103c38de93c (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
# Maintainer: Rafael Fontenelle <rafaelff@gnome.org>

pkgname=direvent-git
pkgver=5.2.r2.g152e1ec
pkgrel=1
pkgdesc="Daemon that monitors events in the file system directories"
arch=('x86_64')
url="https://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
  git describe --long | sed 's/^release-//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

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 -k check
}

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