1 # Maintainer: David Gidwani <david.gidwani@gmail.com>
2 pkgname=python-commons-git
5 pkgdesc="A language agnostic set of libraries designed to supplement the \
6 standard library of the target language."
8 url="http://dave.uni.cx/project/commons"
10 optdepends=('python-imaging: commons.core.graphics features')
11 makedepends=('python2' 'git')
14 _gitroot="git://github.com/darvid/commons-python.git"
15 _gitname="commons-python"
19 msg "Connecting to GIT server...."
21 if [ -d $_gitname ] ; then
22 cd $_gitname && git pull origin
23 msg "The local files are updated."
25 git clone $_gitroot $_gitname
28 msg "GIT checkout done or server timeout"
29 msg "Starting make..."
31 rm -rf "$srcdir/$_gitname-build"
32 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
36 cd "$srcdir/$_gitname-build"
37 python2 setup.py install --root=$pkgdir/ --optimize=1