updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / python2-appinst-git / PKGBUILD
blob7af8d8e15e78f329eb741ea1e9d6badd98f2031e
1 # Maintainer: Andrzej Giniewicz <gginiu@gmail.com>
2 pkgname=python2-appinst-git
3 pkgver=20110205
4 pkgrel=1
5 pkgdesc="Cross platform APIs used to install applications"
6 arch=('any')
7 url="https://github.com/enthought/appinst"
8 license=('BSD')
9 depends=('python2')
10 makedepends=('git' 'python2-distribute')
11 provides=('python2-appinst')
12 conflicts=('python2-appinst' 'python-ets-appinst-svn')
13 replaces=('python-ets-appinst-svn')
14 options=(!emptydirs)
16 _gitroot="https://github.com/enthought/appinst.git"
17 _gitname="appinst"
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 || return 1