Advertisement
Guest User

grive-git - PKGBUILD

a guest
May 28th, 2014
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.28 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement