Advertisement
Guest User

Untitled

a guest
Nov 27th, 2018
290
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. # Maintainer: Mario Rodas <marsam@users.noreply.github.com>
  2.  
  3. pkgname=watchman-git
  4. _gitname=watchman
  5. pkgver=v4.9.0.r534.gc6cd3dfb
  6. pkgrel=1
  7. pkgdesc='Watches files and records, or triggers actions, when they change.'
  8. arch=('i686' 'x86_64')
  9. url='https://facebook.github.io/watchman/'
  10. license=('Apache')
  11. depends=('pcre' 'openssl')
  12. makedepends=('git')
  13. conflicts=('watchman')
  14. options=('!libtool' 'staticlibs')
  15. provides=()
  16. source=("${_gitname}::git+https://github.com/facebook/watchman.git")
  17. sha256sums=('SKIP')
  18.  
  19. pkgver() {
  20. cd "${srcdir}/${_gitname}"
  21. git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
  22. }
  23.  
  24. build() {
  25. cd "${srcdir}/${_gitname}"
  26. ./autogen.sh
  27. ./configure --prefix=/usr \
  28. --with-pcre \
  29. --without-python \
  30. --enable-statedir="/var/lib/${_gitname}"\
  31. --enable-lenient # to work around a gcc 8.x bug ; https://github.com/facebook/watchman/issues/638
  32. make
  33. }
  34.  
  35. check() {
  36. cd "${srcdir}/${_gitname}"
  37. make check
  38. }
  39.  
  40. package() {
  41. cd "${srcdir}/${_gitname}"
  42. make DESTDIR="${pkgdir}" install
  43. }
  44.  
  45. # Local Variables:
  46. # compile-command: "makepkg -sm && mksrcinfo"
  47. # End:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement