1 # Author: Tobias Quinn <tobias@tobiasquinn.com>
2 # Maintainer: Tobias Quinn <tobias@tobiasquinn.com>
3 pkgname=gnome-shell-mousewheel-zoom-git
6 pkgdesc="Enable mousewheel zoom using left-alt key using gnome-shell"
8 url="https://github.com/tobiasquinn/gnome-shell-mousewheel-zoom"
10 depends=('python2' 'dbus-python' 'python-xlib' 'gnome-shell')
12 conflicts=('gnome-shell-mousewheel-zoom-git')
13 provides=('gnome-shell-mousewheel-zoom-git')
15 _gitroot="git://github.com/tobiasquinn/gnome-shell-mousewheel-zoom.git"
16 _gitname="gnome-shell-mousewheel-zoom"
20 msg "Connecting to GIT server..."
22 if [ -d $_gitname ] ; then
23 cd $_gitname && git pull origin
24 msg "The local files are updated."
26 git clone $_gitroot $_gitname
29 msg "GIT checkout done or server timeout"
30 # Change to use python2
31 sed -i "s/usr\/bin\/env python$/usr\/bin\/env python2/" ${srcdir}/$_gitname/mousewheelzoom.py
33 install -D -m755 ${srcdir}/$_gitname/mousewheelzoom.py "${pkgdir}/usr/bin/mousewheelzoom.py" || return 1
34 install -D -m644 ${srcdir}/$_gitname/mousewheelzoom.py.desktop "${pkgdir}/etc/xdg/autostart/mousewheelzoom.py.desktop" || return 1
37 # vim:set ts=2 sw=2 et: