updated on Wed Jan 18 08:00:29 UTC 2012
[aur-mirror.git] / pymouse-git / PKGBUILD
blobb3122bac17b4f853468aaad48558ea537afba8c5
1 # Contributor: Hylix <hylixx@gmail.com>
2 pkgname=pymouse-git
3 pkgver=20111104
4 pkgrel=1
5 pkgdesc="Cross-platform mouse control with Python"
6 url="http://github.com/pepijndevos/PyMouse/"
7 license="GPL"
8 arch=('any')
9 depends=('python2' 'python-xlib')
10 makedepends=()
11 conflicts=('pymouse')
12 provides=('pymouse')
13 source=()
14 md5sums=()
16 _gitroot="git://github.com/pepijndevos/PyMouse"
17 _gitname="PyMouse"
19 build() {
20     msg "Connecting to github.com GIT server...."
22     if [ -d $startdir/src/$_gitname ] ; then
23         cd $_gitname && git pull origin
24         msg "The local files are updated."
25     else
26         git clone $_gitroot
27     fi
29     msg "GIT checkout done or server timeout"
30     msg "Starting make..."
32     cd $srcdir/$_gitname
33     python2 setup.py install --root=${pkgdir} --prefix=/usr || return 1
34  }