updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / gnome-shell-mousewheel-zoom-git / PKGBUILD
blob83b35b8123a003c6674c30f362a7f5f81bed50ae
1 # Author: Tobias Quinn <tobias@tobiasquinn.com>
2 # Maintainer: Tobias Quinn <tobias@tobiasquinn.com>
3 pkgname=gnome-shell-mousewheel-zoom-git
4 pkgver=20111021
5 pkgrel=1
6 pkgdesc="Enable mousewheel zoom using left-alt key using gnome-shell"
7 arch=('i686' 'x86_64')
8 url="https://github.com/tobiasquinn/gnome-shell-mousewheel-zoom"
9 license=('GPL3')
10 depends=('python2' 'dbus-python' 'python-xlib' 'gnome-shell')
11 makedepends=('git')
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"
18 build() {
19   cd "$srcdir"
20   msg "Connecting to GIT server..."
22   if [ -d $_gitname ] ; then
23     cd $_gitname && git pull origin
24     msg "The local files are updated."
25   else
26     git clone $_gitroot $_gitname
27   fi
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: