updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / autopy-git / PKGBUILD
blob50cfd923624bf4e9e397ce5b0f58f16e5440c12e
1 # Maintainer: David Phillips <david@daphsoft.com> 
2 pkgname=autopy-git
3 pkgver=20110530
4 pkgrel=1
5 pkgdesc="A simple, cross-platform GUI automation toolkit for Python."
6 arch=('x86' 'x86_64')
7 url="https://github.com/msanders/autopy"
8 license=('MIT')
9 depends=('libpng' 'zlib' 'libxtst' 'xorg-xmessage' 'python2')
10 makedepends=('git')
12 _gitroot="git://github.com/msanders/autopy.git"
13 _gitname="autopy"
15 build() {
16   cd "$srcdir"
17   msg "Connecting to GIT server...."
19   if [ -d $_gitname ] ; then
20     cd $_gitname && git pull origin
21     msg "The local files are updated."
22   else
23     git clone $_gitroot 
24   fi
26   msg "GIT checkout done or server timeout"
27   msg "Starting build..."
28   
29   cd "$srcdir/$_gitname"
30   python2 setup.py build
34 package() {
35   cd "$srcdir/$_gitname"
36   python2 setup.py install --prefix=/usr --root="$pkgdir"
37