Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Maintainer: Zhengyu Xu <xzy3186@gmail.com>
- pkgname=insync
- pkgver=1.2.7
- pkgrel=1
- pkgdesc="An unofficial Google Drive client that runs on Linux, with support for various desktops"
- url="https://www.insynchq.com/downloads"
- license=('custom:insync')
- options=(!strip !upx)
- depends=('xdg-utils' 'glibc' 'gobject-introspection')
- optdepends=('insync-nautilus: file-manager integration for nautilus'
- 'insync-nemo: file-manager integration for nemo'
- 'insync-dolphin: file-manager integration for dolphin'
- 'insync-thunar: file-manager integration for thunar'
- 'insync-caja: file-manager integration for caja'
- )
- arch=('i686' 'x86_64')
- if [ "$CARCH" = 'i686' ]; then
- source=("${pkgname}-${pkgver}.deb::http://s.insynchq.com/builds/${pkgname}_${pkgver}.35123-wheezy_i386.deb")
- sha256sums=('8413f581e050b6fe0992fe9096d7b68c344c582a8c54036cb77e03bd772bc73e')
- elif [ "$CARCH" = "x86_64" ]; then
- source=("${pkgname}-${pkgver}.deb::http://s.insynchq.com/builds/${pkgname}_${pkgver}.35123-wheezy_amd64.deb")
- sha256sums=('72ed3208ecea63e7094e1799a41048df28ab6bdedec2294b1a2468c825774989')
- fi
- noextract=("${pkgname}-${pkgver}.deb")
- source=("${source[@]}"
- "insync.service")
- sha256sums=("${sha256sums[@]}"
- "995d9131bd454015ff11414d002b8927b7397835969e27061008264c0c5f225d")
- package() {
- cd $srcdir
- ar x ${pkgname}-${pkgver}.deb
- tar xvf data.tar.gz
- cp -rp usr $pkgdir
- cd $pkgdir
- for file in $(grep -R "/usr/bin/python" . | cut -f1 -d :)
- do
- sed -i "s|usr/bin/python$|usr/bin/python2|g" $file
- done
- mkdir -p ${pkgdir}/usr/lib/systemd/system
- sed "s/_OPTION/ start/g" ${srcdir}/insync.service >${pkgdir}/usr/lib/systemd/system/insync@.service
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement