updated on Mon Jan 16 04:00:32 UTC 2012
[aur-mirror.git] / pytyle2-hg / PKGBUILD
blobc335ba345bb6e9590892962c54c27e1af7c6c40a
1 # Contributor: Andrew Gallant <andrew@pytyle.com>
2 # Maintainer: Andrew Gallant
3 pkgname=pytyle2-hg
4 pkgver=2.0.0
5 pkgrel=2
6 pkgdesc="Auto/manual on-demand tiling manager that fits in any EWMH compatible window manager."
7 arch=('any')
8 url="http://pytyle.com"
9 license=('GPL')
10 groups=()
11 makedepends=('mercurial')
12 depends=('python2>=2.6' 'xpyb-git')
13 source=()
14 noextract=()
15 md5sums=()
17 _hgroot="https://pytyle.googlecode.com/hg/"
18 _hgrepo="pytyle"
20 build() {
21     cd "$srcdir"
22     msg "Connecting to Mercurial server..."
24     if [ -d $_hgrepo ]; then
25         cd $_hgrepo
26         hg pull -u || return 1
27         msg "The local files are updated."
28     else
29         hg clone $_hgroot $_hgrepo || return 1
30     fi
32     msg "Mercurial checkout done or server timeout"
33     msg "Starting make..."
35     rm -rf "$srcdir/$_hgrepo-build"
36     cp -r "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-build"
37     cd "$srcdir/$_hgrepo-build"
39     python2 ./setup.py install --root=$pkgdir || return 1