updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / python2-blockcanvas-git / PKGBUILD
blob107f39d46635359e98eff2c83e82df4672a2f6e0
1 # Maintainer: Andrzej Giniewicz <gginiu@gmail.com>
2 pkgname=python2-blockcanvas-git
3 pkgver=20110623
4 pkgrel=1
5 pkgdesc="Visual Environment for Creating Simulation Experiments"
6 arch=('i686' 'x86_64')
7 url="https://github.com/enthought/blockcanvas"
8 license=('BSD')
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')
15 options=(!emptydirs)
17 _gitroot="https://github.com/enthought/blockcanvas.git"
18 _gitname="blockcanvas"
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