updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / pytyle3-git / PKGBUILD
blob93f83fb4cea6ff7b61a35b8d7791c43d1eeed0ce
1 # Contributor: Andrew Gallant <andrew@pytyle.com>
2 # Maintainer: Andrew Gallant
3 pkgname=pytyle3-git
4 pkgver=20110817
5 pkgrel=1
6 pkgdesc="An automatic tiler that is 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')
13 source=()
14 noextract=()
15 install=pytyle3.install
16 md5sums=()
18 _gitroot="git://github.com/BurntSushi/pytyle3.git"
19 _gitname=pytyle3
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