# Maintainer: Sebastian Lau # Contributor: Skad pkgname="grive-tools" pkgver=1.15 pkgrel=6 pkgdesc="Grive Tools will assist in the installation and setup of Google Drive under GTK" arch=('any') url="http://www.thefanclub.co.za/how-to/ubuntu-google-drive-client-grive-and-grive-tools" license=('GPL3') depends=('grive' 'lsb-release' 'libappindicator-gtk3' 'python2' 'glib2' 'zenity' 'python2-pyinotify' 'python2-gobject' 'expect') source=("https://launchpad.net/~thefanclub/+archive/grive-tools/+files/${pkgname}_${pkgver}.tar.gz" ) md5sums=('71d48848aa91aed5531b72e7db347901') install='grive-tools.install' package() { cd $pkgname if [ -f /usr/bin/kdesu4 -a ! -f /usr/bin/gksudo ]; then sed -i 's/gksudo/kdesu4/g' usr/share/applications/grive-setup.desktop fi if [ ! -f /usr/bin/kdesu4 -a ! -f usr/bin/gksudo ]; then sed -i 's/gksudo/sudo/g' usr/share/applications/grive-setup.desktop sed -i 's/Terminal=false/Terminal=true/g' usr/share/applications/grive-setup.desktop fi sed -i 's|\(/usr/bin/env python\)|\12|' opt/thefanclub/$pkgname/grive-indicator sed -i 's|thefanclub\/||' usr/share/applications/* chmod 755 opt/thefanclub/$pkgname/grive-indicator mv opt/thefanclub/$pkgname opt rmdir opt/thefanclub sed -i 's|thefanclub\/||' opt/grive-tools/grive-indicator sed -i 's|thefanclub\/||' opt/grive-tools/grive-indicator-autostart.desktop sed -i 's|thefanclub\/||' opt/grive-tools/grive-setup cp -r opt usr $pkgdir/ }