updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / pager-multihead-git / PKGBUILD
blob2842144a6486719c3a85c6bf3b68fe70ffe9838d
1 # Contributor: Andrew Gallant <andrew@pytyle.com>
2 # Maintainer: Andrew Gallant
3 pkgname=pager-multihead-git
4 pkgver=20110817
5 pkgrel=1
6 pkgdesc="A highly configurable pager compatible with Openbox Multihead"
7 arch=('any')
8 url="http://pytyle.com"
9 license=('GPL')
10 groups=()
11 makedepends=('git')
12 depends=('python2>=2.7' 'xpybutil-git' 'pango' 'pygtk' 'python-keybinder')
13 source=()
14 noextract=()
15 install=pager-multihead.install
16 md5sums=()
18 _gitroot="git://github.com/BurntSushi/pager-multihead.git"
19 _gitname=pager-multihead
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