summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c44aa09d855ed1f56eceb03d231cea90b72a011c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Maintainer: Sebastian Lau <lauseb644 _at_ gmail _dot_ com>
# Contributor: Skad <skadprog@gmail.com>
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/

}