summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThibaut Horel <thibaut.horel@gmail.com>2014-08-16 00:02:30 -0400
committerThibaut Horel <thibaut.horel@gmail.com>2014-08-16 00:02:30 -0400
commitb3940a256e1a689c93d5df4b02de2da78582eb05 (patch)
tree0820eee91c4251fac18d9a1e71095c6bddf8d315
parentfca115fc00f495a78b39811c6a3b54f48bd3d022 (diff)
downloadarchlinux-b3940a256e1a689c93d5df4b02de2da78582eb05.tar.gz
[watchman-git] Add PKGBUILDHEADmaster
-rw-r--r--watchman-git/PKGBUILD32
1 files changed, 32 insertions, 0 deletions
diff --git a/watchman-git/PKGBUILD b/watchman-git/PKGBUILD
new file mode 100644
index 0000000..c64f359
--- /dev/null
+++ b/watchman-git/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: Thibaut Horel <thibaut dot horel at gmail dot com>
+pkgname=watchman-git
+pkgver=2.9.8.r32.g20dbfd4
+pkgrel=1
+pkgdesc='watches files and takes action when they change'
+arch=(i686 x86_64)
+url=https://facebook.github.io/watchman/
+license=('Apache')
+depends=(pcre)
+makedepends=(git python)
+optdepends=('python: python bindings')
+provides=('watchman')
+conflicts=('watchman')
+source=('watchman-git::git+https://github.com/facebook/watchman.git')
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/$pkgname"
+ git describe --long | sed -r 's/^v//;s/([^-]*-g)/r\1/;s/-/./g'
+}
+
+build() {
+ cd "$srcdir/$pkgname"
+ ./autogen.sh
+ ./configure --prefix=/usr --with-python
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname"
+ make DESTDIR="$pkgdir/" install
+}