# Maintainer: Vlad M. # COntributor: Zhengyu Xu pkgname=insync pkgver=1.3.2 _pkgver=36049 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' 'python2') optdepends=('insync-nautilus: file-manager integration for nautilus' 'sni-qt: To show the icon in Plasma 5 tray') arch=('i686' 'x86_64') source=('insync.service') source_i686=("http://s.insynchq.com/builds/${pkgname}_${pkgver}.${_pkgver}-trusty_i386.deb") source_x86_64=("http://s.insynchq.com/builds/${pkgname}_${pkgver}.${_pkgver}-trusty_amd64.deb") sha256sums=('995d9131bd454015ff11414d002b8927b7397835969e27061008264c0c5f225d') sha256sums_i686=('116704a89525eba58363661bbf6f3c84493c01b375b77feff8cee786a800cd4f') sha256sums_x86_64=('0eb1828ee714bfa34cd2cabb1f6f35531422b7b70106fbee2e49092d6cbed2a6') package() { 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 }