1 # Maintainer: Andrzej Giniewicz <gginiu@gmail.com>
2 pkgname=python2-enable-git
5 pkgdesc="Low level drawing and interaction packages"
7 url="https://github.com/enthought/enable"
9 depends=('python2' 'python-reportlab' 'libxt' 'libxtst' 'python2-traitsui')
10 makedepends=('git' 'python2-distribute' 'gcc' 'cython' 'swig')
11 provides=('python2-enable')
12 conflicts=('python-enthought-enable' 'python2-enable' 'python-ets-enable-svn')
13 replaces=('python-ets-enable-svn')
16 _gitroot="https://github.com/enthought/enable.git"
21 msg "Connecting to GIT server...."
23 if [ -d $_gitname ] ; then
24 cd $_gitname && git pull origin
25 msg "The local files are updated."
27 git clone $_gitroot $_gitname
30 msg "GIT checkout done or server timeout"
31 msg "Starting make..."
33 rm -rf "$srcdir/$_gitname-build"
34 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
35 cd "$srcdir/$_gitname-build"
37 python2 setup.py install --root="$pkgdir"/ --optimize=1