summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3e1ae4048142f5a6df8566925f2181618139220e (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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# Maintainer: Frederic Bezies < fredbezies at gmail dot com >
# Maintainer: Mario Rodas <marsam@users.noreply.github.com>

pkgname=watchman-git
_gitname=watchman
pkgver=v4.9.0.r535.gc12ab4ca
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')
conflicts=('watchman')
options=('!libtool' 'staticlibs')
provides=()
source=("${_gitname}::git+https://github.com/facebook/watchman.git")
sha256sums=('SKIP')

pkgver() {
  cd "${srcdir}/${_gitname}"
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "${srcdir}/${_gitname}"
  ./autogen.sh
  ./configure --prefix=/usr \
              --with-pcre \
              --without-python \
              --enable-statedir="/var/lib/${_gitname}"\
               --enable-lenient # to work around a gcc 8.x bug ; https://github.com/facebook/watchman/issues/638
  make
}

check() {
  cd "${srcdir}/${_gitname}"
  make check
}

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

# Local Variables:
# compile-command: "makepkg -sm && mksrcinfo"
# End:# Maintainer: Mario Rodas <marsam@users.noreply.github.com>

pkgname=watchman-git
_gitname=watchman
pkgver=v4.9.0.r535.gc12ab4ca
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')
conflicts=('watchman')
options=('!libtool' 'staticlibs')
provides=()
source=("${_gitname}::git+https://github.com/facebook/watchman.git")
sha256sums=('SKIP')

pkgver() {
  cd "${srcdir}/${_gitname}"
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "${srcdir}/${_gitname}"
  ./autogen.sh
  ./configure --prefix=/usr \
              --with-pcre \
              --without-python \
              --enable-statedir="/var/lib/${_gitname}"\
               --enable-lenient # to work around a gcc 8.x bug ; https://github.com/facebook/watchman/issues/638
  make
}

check() {
  cd "${srcdir}/${_gitname}"
  make check
}

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

# Local Variables:
# compile-command: "makepkg -sm && mksrcinfo"
# End: