1 # Maintainer: Andrzej Giniewicz <gginiu@gmail.com>
2 pkgname=python2-blockcanvas-git
5 pkgdesc="Visual Environment for Creating Simulation Experiments"
7 url="https://github.com/enthought/blockcanvas"
9 depends=('python2' 'python2-codetools' 'python2-apptools' 'python2-chaco'
10 'python2-etsdevtools' 'python2-scimath')
11 makedepends=('git' 'python2-distribute' 'gcc')
12 provides=('python2-blockcanvas')
13 conflicts=('python2-blockcanvas' 'python-ets-blockcanvas-svn')
14 replaces=('python-ets-blockcanvas-svn')
17 _gitroot="https://github.com/enthought/blockcanvas.git"
18 _gitname="blockcanvas"
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