1 # Maintainer: Andrzej Giniewicz <gginiu@gmail.com>
2 # Maintainer: Felix Yan <felixonmars@gmail.com>
3 pkgname=python2-graphcanvas-git
6 pkgdesc="Interactive Graph (network) Visualization"
8 url="https://github.com/enthought/graphcanvas"
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')
17 _gitroot="https://github.com/enthought/graphcanvas.git"
18 _gitname="graphcanvas"
22 msg "Connecting to GIT server...."
24 if [ -d $_gitname ] ; then
25 cd $_gitname && git pull origin
26 msg "The local files are updated."
28 git clone $_gitroot $_gitname
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