updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / python2-envisage-git / PKGBUILD
blobacb2fe68d689fa14899cbcc3ab9e35ecb031e533
1 # Maintainer: Andrzej Giniewicz <gginiu@gmail.com>
2 # Maintainer: Felix Yan <felixonmars@gmail.com>
3 pkgname=python2-envisage-git
4 pkgver=20111205
5 pkgrel=1
6 pkgdesc="Extensible Application Framework"
7 arch=('any')
8 url="https://github.com/enthought/envisage"
9 license=('BSD')
10 depends=('python2' 'python2-traits' 'python2-traitsui')
11 makedepends=('git' 'python2-distribute')
12 provides=('python2-envisage')
13 conflicts=('python2-envisage')
14 options=(!emptydirs)
16 _gitroot="https://github.com/enthought/envisage.git"
17 _gitname="envisage"
19 build() {
20   cd "$srcdir"
21   msg "Connecting to GIT server...."
23   if [ -d $_gitname ] ; then
24     cd $_gitname && git pull origin
25     msg "The local files are updated."
26   else
27     git clone $_gitroot $_gitname
28   fi
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