updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / python2-ets-git / PKGBUILD
blobf6615d7b6ab6539c1306d8c7970f17aa098d7344
1 # Maintainer: Andrzej Giniewicz <gginiu@gmail.com>
2 pkgname=python2-ets-git
3 pkgver=20110623
4 pkgrel=1
5 pkgdesc="Enthought Tool Suite"
6 arch=('any')
7 url="https://github.com/enthought/ets"
8 license=('BSD')
9 depends=('python2' 'python2-apptools-git' 'python2-blockcanvas-git' 'python2-chaco-git'
10          'python2-codetools-git' 'python2-enable-git' 'python2-envisage-git' 'python2-etsdevtools-git'
11          'python2-etsproxy-git' 'python2-graphcanvas-git' 'python2-mayavi-git' 'python2-pyface-git'
12          'python2-scimath-git' 'python2-traits-git' 'python2-traitsui-git')
13 makedepends=('git' 'python2-distribute')
14 optdepends=('python2-ets-doc-git')
15 provides=('python2-ets')
16 conflicts=('python2-ets')
17 options=(!emptydirs)
19 _gitroot="https://github.com/enthought/ets.git"
20 _gitname="ets"
22 build() {
23   cd "$srcdir"
24   msg "Connecting to GIT server...."
26   if [ -d $_gitname ] ; then
27     cd $_gitname && git pull origin
28     msg "The local files are updated."
29   else
30     git clone $_gitroot $_gitname
31   fi
33   msg "GIT checkout done or server timeout"
34   msg "Starting make..."
36   rm -rf "$srcdir/$_gitname-build"
37   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
38   cd "$srcdir/$_gitname-build"
40   python2 setup.py install --root="$pkgdir"/ --optimize=1