updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / python2-etsproxy-git / PKGBUILD
blobaf4b7cd5a386a7e29059fbd3ba73f1a0f51712d4
1 # Maintainer: Andrzej Giniewicz <gginiu@gmail.com>
2 pkgname=python2-etsproxy-git
3 pkgver=20110623
4 pkgrel=1
5 pkgdesc="ETS Proxy Modules for Backwards Compatibility"
6 arch=('i686' 'x86_64')
7 url="https://github.com/enthought/etsproxy"
8 license=('BSD')
9 depends=('python2')
10 makedepends=('git' 'python2-distribute')
11 conflicts=('python2-etsproxy'
12            'python2-enthoughtbase' 'python2-envisagecore' 'python2-envisageplugins'
13            'python2-traitsbackendwx' 'python2-traitsbackendqt' 'python2-traitsgui')
14 provides=('python2-etsproxy'
15           'python2-enthoughtbase' 'python2-envisagecore' 'python2-envisageplugins'
16           'python2-traitsbackendwx' 'python2-traitsbackendqt' 'python2-traitsgui'
17           'python2-enthoughtbase-git' 'python2-envisagecore-git' 'python2-envisageplugins-git'
18           'python2-traitsbackendwx-git' 'python2-traitsbackendqt-git' 'python2-traitsgui-git')
19 options=(!emptydirs)
21 _gitroot="https://github.com/enthought/etsproxy.git"
22 _gitname="etsproxy"
24 build() {
25   cd "$srcdir"
26   msg "Connecting to GIT server...."
28   if [ -d $_gitname ] ; then
29     cd $_gitname && git pull origin
30     msg "The local files are updated."
31   else
32     git clone $_gitroot $_gitname
33   fi
35   msg "GIT checkout done or server timeout"
36   msg "Starting make..."
38   rm -rf "$srcdir/$_gitname-build"
39   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
40   cd "$srcdir/$_gitname-build"
42   python2 setup.py install --root="$pkgdir"/ --optimize=1