summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 44b0d2bfbc8af06a43c300933b658080b4abb885 (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
# Contributor: Mario Rodas <marsam@users.noreply.github.com>
# Contributor: Frederic Bezies < fredbezies at gmail dot com >
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>

pkgname=watchman-git
pkgver=4.9.0.r1158.g264484e0
pkgrel=1
pkgdesc='Watches files and records, or triggers actions, when they change.'
arch=('i686' 'x86_64')
url='https://facebook.github.io/watchman/'
license=('Apache')
depends=('pcre' 'openssl')
makedepends=('git' 'gflags' 'folly')
conflicts=('watchman')
provides=('watchman')
options=('!libtool' 'staticlibs')
source=("git+https://github.com/facebook/watchman.git")
sha256sums=('SKIP')

pkgver() {
  cd ${pkgname%-git}
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' | cut -c2-
}

prepare() {
  cd ${pkgname%-git}
  sed -i '586,587d' getdeps.py
}

build() {
  cd ${pkgname%-git}
  cmake . \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_BUILD_TYPE=Release \
    -DBUILD_SHARED_LIBS=ON 
  make
}

check() {
  cd ${pkgname%-git}
  make check
}

package() {
  cd ${pkgname%-git}

  cmake -DCMAKE_INSTALL_PREFIX="${pkgdir}"/usr .
  make install
}