# Maintainer: Vlad M. # Contributor: Zhengyu Xu pkgname=insync pkgver=1.3.3 _pkgver=36056 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=('41ca0475f269213e34d52c5c0cfff2beee355e9ec77bde0033ca42a879fbbd83') sha256sums_x86_64=('1626f8e435a0b37ff26789ff58772a8d46faeb00b99bd783369742f736f3bd35') 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 }