updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / python2-graphcanvas-git / PKGBUILD
blob0dccec314d4fb18f4aa3bd6e6e1f01f5fa93e985
1 # Maintainer: Andrzej Giniewicz <gginiu@gmail.com>
2 # Maintainer: Felix Yan <felixonmars@gmail.com>
3 pkgname=python2-graphcanvas-git
4 pkgver=20111205
5 pkgrel=1
6 pkgdesc="Interactive Graph (network) Visualization"
7 arch=('any')
8 url="https://github.com/enthought/graphcanvas"
9 license=('BSD')
10 depends=('python2' 'python2-networkx' 'python2-enable')
11 makedepends=('git' 'python2-distribute')
12 provides=('python2-graphcanvas')
13 conflicts=('python2-graphcanvas' 'python-ets-graphcanvas-svn')
14 replaces=('python-ets-graphcanvas-svn')
15 options=(!emptydirs)
17 _gitroot="https://github.com/enthought/graphcanvas.git"
18 _gitname="graphcanvas"
20 build() {
21   cd "$srcdir"
22   msg "Connecting to GIT server...."
24   if [ -d $_gitname ] ; then
25     cd $_gitname && git pull origin
26     msg "The local files are updated."
27   else
28     git clone $_gitroot $_gitname
29   fi
31   msg "GIT checkout done or server timeout"
32   msg "Starting make..."
34   rm -rf "$srcdir/$_gitname-build"
35   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
36   cd "$srcdir/$_gitname-build"
38   python2 setup.py install --root="$pkgdir"/ --optimize=1