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

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

proc check {
	cd $builddir
	make check
}

proc package {
	cd $builddir
	make DESTDIR=$pkgdir install-binPROGRAMS
}

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