Advertisement
Guest User

Untitled

a guest
Oct 19th, 2019
449
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. # Maintainer: Gordian Edenhofer <gordian.edenhofer@gmail.com>
  2. # Contributor: Tom Moore <tmoore01 at gmail dot com>
  3. # Contributer: Allen Choong <allencch at hotmail dot com>
  4. # Contributer: Andrea Scarpino <andrea@archlinux.org>
  5. # Contributer: Daniel YC Lin <dlin.tw at gmail>
  6. # Contributer: Jarek Sedlacek <JarekSedlacek@gmail>
  7.  
  8. pkgname=grive-git
  9. pkgver=493.f039e38
  10. pkgrel=2
  11. pkgdesc='An open source Linux client for Google Drive with support for the new Drive REST API and partial sync'
  12. arch=('i686' 'x86_64')
  13. url='https://github.com/vitalif/grive2'
  14. license=('GPL2')
  15. depends=('yajl' 'curl' 'libgcrypt' 'boost-libs' 'gcc-libs' 'json-c' 'expat')
  16. optdepends=("inotify-tools: scheduled syncs and syncs on file change events"
  17. "cppunit: unit tests"
  18. "binutils: backtrace and libiberty")
  19. makedepends=('cmake' 'git' 'boost')
  20. provides=("grive=${pkgver}")
  21. conflicts=('grive')
  22. source=("${pkgname}"::"git+https://github.com/vitalif/grive2")
  23. sha512sums=('SKIP')
  24.  
  25. pkgver() {
  26. cd "${srcdir}/${pkgname}"
  27. echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
  28. }
  29.  
  30. build() {
  31. cd "${srcdir}/${pkgname}"
  32. rm -rf build
  33. mkdir build
  34. cd build
  35.  
  36. cmake -DBoost_DIR=/usr/lib/cmake/Boost-1.71.0 \
  37. -DCMAKE_BUILD_TYPE=Release \
  38. -DCMAKE_INSTALL_PREFIX=/usr \
  39. -DCMAKE_EXE_LINKER_FLAGS=-ljson-c ..
  40.  
  41. make
  42. }
  43.  
  44. package() {
  45. make -C "${srcdir}/${pkgname}/build" DESTDIR="${pkgdir}" install
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement