Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

grive-git - PKGBUILD

By: a guest on May 28th, 2014  |  syntax: Bash  |  size: 1.28 KB  |  views: 192  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Contributer: Andrea Scarpino <andrea@archlinux.org>
  2. # Contributer: Daniel YC Lin <dlin.tw at gmail>
  3. # Maintainer: Jarek Sedlacek <JarekSedlacek@gmail>
  4.  
  5. pkgname=grive-git
  6. pkgrel=1
  7. pkgver=20130619
  8. pkgdesc='Open source Linux client for Google Drive'
  9. arch=('i686' 'x86_64')
  10. url='http://www.lbreda.com/grive/start'
  11. license=('GPL2')
  12. depends=('json-c' 'curl' 'boost-libs' 'expat' 'libgcrypt' 'yajl')
  13. makedepends=('cmake' 'git' 'boost' 'yajl' 'json-c' 'qt4')
  14. provides=('grive')
  15. conflicts=('grive')
  16. source=('json-c.patch')
  17. md5sums=('0dd8ecf016d818f45fc46fdb2fed462d')
  18.  
  19. _gitroot="https://github.com/JarekSed/grive.git"
  20. _gitname="grive"
  21.  
  22. build() {
  23.   cd "${srcdir}"
  24.   msg "Connecting to GIT server...."
  25.  
  26.   if [ -d $_gitname ] ; then
  27.     cd $_gitname && git pull origin
  28.     msg "The local files are updated."
  29.   else
  30.     git clone $_gitroot $_gitname
  31.   fi
  32.  
  33.   msg "GIT checkout done or server timeout"
  34.   msg "Starting make..."
  35.  
  36.   cd "${srcdir}/${_gitname}"
  37.   patch -p1 -i ../json-c.patch
  38.  
  39.   rm -rf "${srcdir}"/build
  40.   mkdir "${srcdir}"/build
  41.   cd "${srcdir}"/build
  42.   cmake ../${_gitname} \
  43.     -DCMAKE_BUILD_TYPE=Release \
  44.     -DCMAKE_INSTALL_PREFIX=/usr \
  45.     -DCMAKE_EXE_LINKER_FLAGS=-ljson-c
  46.   make
  47. }
  48.  
  49. package() {
  50.   cd "${srcdir}"/build
  51.   make DESTDIR="${pkgdir}" install
  52. }