# Maintainer: André Klitzing <aklitzing@gmail.com>
pkgname=watchman
pkgver=4.7.0
pkgrel=0
pkgdesc="A file watching service"
url="https://facebook.github.io/watchman/"
arch="all"
license="Apache-2.0"
makedepends="pcre-dev autoconf automake linux-headers"
source="$pkgname-$pkgver.tar.gz::https://github.com/facebook/watchman/archive/v$pkgver.tar.gz"
builddir="$srcdir/"$pkgname-$pkgver

build() {
	cd "$builddir"
	./autogen.sh
	./configure --prefix= --exec-prefix=/usr
	make
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make DESTDIR=$pkgdir install-binPROGRAMS
}

sha512sums="1b0729bfba28948619ab910e0d21b8ff1392c3a4d1b39b77241e5465337d76ea54c51ad4a4b1458dd25ad231a3f4eb5c9fa68b3d6b0941f95f89ab80e8a4c0cb  watchman-4.7.0.tar.gz"
