Advertisement
Guest User

Untitled

a guest
Apr 20th, 2015
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.69 KB | None | 0 0
  1. # Maintainer: Zhengyu Xu <xzy3186@gmail.com>
  2.  
  3. pkgname=insync
  4. pkgver=1.2.7
  5. pkgrel=1
  6. pkgdesc="An unofficial Google Drive client that runs on Linux, with support for various desktops"
  7. url="https://www.insynchq.com/downloads"
  8. license=('custom:insync')
  9. options=(!strip !upx)
  10.  
  11. depends=('xdg-utils' 'glibc' 'gobject-introspection')
  12. optdepends=('insync-nautilus: file-manager integration for nautilus'
  13. 'insync-nemo: file-manager integration for nemo'
  14. 'insync-dolphin: file-manager integration for dolphin'
  15. 'insync-thunar: file-manager integration for thunar'
  16. 'insync-caja: file-manager integration for caja'
  17. )
  18.  
  19. arch=('i686' 'x86_64')
  20. if [ "$CARCH" = 'i686' ]; then
  21.    source=("${pkgname}-${pkgver}.deb::http://s.insynchq.com/builds/${pkgname}_${pkgver}.35123-wheezy_i386.deb")
  22.    sha256sums=('8413f581e050b6fe0992fe9096d7b68c344c582a8c54036cb77e03bd772bc73e')
  23. elif [ "$CARCH" = "x86_64" ]; then
  24.    source=("${pkgname}-${pkgver}.deb::http://s.insynchq.com/builds/${pkgname}_${pkgver}.35123-wheezy_amd64.deb")
  25.    sha256sums=('72ed3208ecea63e7094e1799a41048df28ab6bdedec2294b1a2468c825774989')
  26. fi
  27. noextract=("${pkgname}-${pkgver}.deb")
  28.  
  29. source=("${source[@]}"
  30.         "insync.service")
  31. sha256sums=("${sha256sums[@]}"
  32.             "995d9131bd454015ff11414d002b8927b7397835969e27061008264c0c5f225d")
  33.  
  34. package() {
  35.    cd $srcdir
  36.    ar x ${pkgname}-${pkgver}.deb
  37.    tar xvf data.tar.gz
  38.    cp -rp usr $pkgdir
  39.  
  40.    cd $pkgdir
  41.    for file in $(grep -R "/usr/bin/python" . | cut -f1 -d :)
  42.    do
  43.       sed -i "s|usr/bin/python$|usr/bin/python2|g" $file
  44.    done
  45.    mkdir -p ${pkgdir}/usr/lib/systemd/system
  46.    sed "s/_OPTION/ start/g" ${srcdir}/insync.service >${pkgdir}/usr/lib/systemd/system/insync@.service
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement