blob: 7a526f83e7ff6d7726d4de667efd27b48eea9ef4 (
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
|
# Maintainer: James Pike <github@chilon.net>
# Original maintainer: José Luis Lafuente <jl@lafuente.me>
pkgname=watchman-make
_pkgname=watchman
pkgver=4.7.0
pkgrel=1
pkgdesc="An inotify-based file watching and job triggering command line utility"
url="https://facebook.github.io/watchman/"
arch=('x86_64' 'i686')
license=('Apache')
depends=('pcre')
optdepends=()
makedepends=('glibc')
conflicts=()
replaces=()
backup=()
install=$pkgname.install
source=("${_pkgname}-${pkgver}.tar.gz::https://github.com/facebook/watchman/archive/v${pkgver}.tar.gz"
"${pkgname}.tmpfiles")
sha256sums=('77c7174c59d6be5e17382e414db4907a298ca187747c7fcb2ceb44da3962c6bf'
'2b061865e10578a0477b9c7991a00594bc839c846b98896e93c75743dbf6a379')
build() {
cd "${srcdir}/${_pkgname}-${pkgver}"
./autogen.sh
./configure --prefix= --exec-prefix=/usr --localstatedir=/run/${pkgname} --without-python
make
}
package() {
cd "${srcdir}/${_pkgname}-${pkgver}"
# Docs only online, see https://github.com/facebook/watchman/issues/30
make DESTDIR="${pkgdir}" install-binPROGRAMS
install -dm 755 "${pkgdir}"/usr/lib/tmpfiles.d
install -m 644 "../${pkgname}.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/${_pkgname}.conf"
cd "${srcdir}/${_pkgname}-${pkgver}/python"
python2 setup.py install --root="$pkgdir/" --prefix=/usr --optimize=1
}
# vim:set ts=2 sw=2 et:
|