1 # Contributor: Andrew Gallant <andrew@pytyle.com>
2 # Maintainer: Andrew Gallant
3 pkgname=pager-multihead-git
6 pkgdesc="A highly configurable pager compatible with Openbox Multihead"
8 url="http://pytyle.com"
12 depends=('python2>=2.7' 'xpybutil-git' 'pango' 'pygtk' 'python-keybinder')
15 install=pager-multihead.install
18 _gitroot="git://github.com/BurntSushi/pager-multihead.git"
19 _gitname=pager-multihead
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