1 # Contributor: Andrew Gallant <andrew@pytyle.com>
2 # Maintainer: Andrew Gallant
6 pkgdesc="An incomplete xcb-util port plus some extras"
8 url="http://pytyle.com"
12 depends=('python2>=2.7' 'xpyb-git')
13 optdepends=('python-imaging')
18 _gitroot="git://github.com/BurntSushi/xpybutil.git"
24 msg "Connecting to GIT server...."
26 if [ -d $_gitname ]; then
27 cd $_gitname && git pull origin
28 msg "The local files are updated."
30 git clone $_gitroot $_gitname
33 msg "GIT checkout done or server timeout"
34 msg "Starting make..."
36 if [ -d "$srcdir/$_gitname-build" ]; then
37 rm -r "$srcdir/$_gitname-build"
39 cp -r "$srcdir/$_gitname" "$srcdir/$_gitname-build"
40 cd "$srcdir/$_gitname-build"
42 msg "Clone finished, checking out branch $_gitbranch"
43 git checkout $_gitbranch
45 python2 ./setup.py install --root=$pkgdir || return 1