1 # Contributor: Mathieu Pasquet <mathieui@mathieui.net>
2 # Maintainer: Mathieu Pasquet <mathieui@mathieui.net>
4 pkgname=django-dajaxice-git-python2
7 pkgdesc="Dajax is a powerfull tool to easily and super-fastly develop asynchronous presentation logic in web applications using python and almost no lines of JS source code."
9 url="http://dajaxproject.com"
14 _gitroot="https://github.com/jorgebastida/django-dajaxice.git"
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"
33 cd "$srcdir/$_gitname-build"
35 python2 setup.py build
39 cd "$srcdir/$_gitname-build"
40 python2 setup.py install --root="$pkgdir/"