updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / python2-pyg-git / PKGBUILD
blob4a5db56ce72c84c07244a8cf8497c9057422852f
1 # $Id$
2 # Maintainer: Fabien Devaux <fdev31 at gmail dot com>
3 pkgname=python2-pyg-git
4 pkgver=20111102
5 pkgrel=1
6 pkgdesc="Pyg package installer"
7 arch=('any')
8 url="http://bitbucket.org/rubik/pyg/"
9 license=('MIT')
10 depends=('python2' 'python2-distribute' 'python2-pkgtools' 'python2-argh')
11 makedepends=('git')
12 provides=('pyg')
13 conflicts=('python2-pyg')
15 _gitroot="git://github.com/rubik/pyg.git"
16 _gitname="pyg"
19 build() {
20     cd $srcdir
22     msg "Connecting to GIT server..."
23     if [[ -d ${_gitname} ]]; then
24         (cd ${_gitname} && git pull origin)
25     else
26         git clone --depth=1 ${_gitroot} ${_gitname}
27     fi
29     msg "GIT checkout done or server timeout"
30     msg "Starting make..."
32     rm -rf ${_gitname}-build
33     cp -r ${_gitname} ${_gitname}-build
35     cd ${srcdir}/${_gitname}-build
37     python2 setup.py build || exit 1
38     python2 setup.py install --root="${pkgdir}" --optimize=1
40     rm -rf ${_gitname}-build