updated on Mon Jan 23 12:00:23 UTC 2012
[aur-mirror.git] / xpybutil-git / PKGBUILD
blob8eabb3d95d1333f266f372a022ec3afbd7a1c796
1 # Contributor: Andrew Gallant <andrew@pytyle.com>
2 # Maintainer: Andrew Gallant
3 pkgname=xpybutil-git
4 pkgver=20110818
5 pkgrel=2
6 pkgdesc="An incomplete xcb-util port plus some extras"
7 arch=('any')
8 url="http://pytyle.com"
9 license=('GPL')
10 groups=()
11 makedepends=('git')
12 depends=('python2>=2.7' 'xpyb-git')
13 optdepends=('python-imaging')
14 source=()
15 noextract=()
16 md5sums=()
18 _gitroot="git://github.com/BurntSushi/xpybutil.git"
19 _gitname=xpybutil
20 _gitbranch="master"
22 build() {
23   cd "$srcdir"
24   msg "Connecting to GIT server...."
26   if [ -d $_gitname ]; then
27     cd $_gitname && git pull origin
28     msg "The local files are updated."
29   else
30     git clone $_gitroot $_gitname
31   fi
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"
38   fi
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