Advertisement
cpunltd

insync-WIP

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