1 # Maintainer: Tasos Latsas <tlatsas2000 at gmail dot com>
3 pkgname=django-pagination-git
6 pkgdesc="A set of utilities for creating robust pagination tools throughout a django application"
8 url="https://launchpad.net/linaro-django-pagination"
14 install=django-pagination-git.install
16 _gitroot="git://github.com/zyga/django-pagination.git"
17 _gitname="django-pagination"
21 msg "Connecting to GIT server...."
23 if [ -d $_gitname ] ; then
24 cd $_gitname && git pull origin
25 msg "The local files are updated."
27 git clone $_gitroot $_gitname
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 build
41 cd "$srcdir/$_gitname-build"
43 python2 setup.py install --prefix=/usr --root="$pkgdir"
44 install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${_gitname}/COPYING"