updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / django-pagination-git / PKGBUILD
blob1ec35fa3d3feedce6cffe306ec78e7e3442308a0
1 # Maintainer: Tasos Latsas <tlatsas2000 at gmail dot com>
3 pkgname=django-pagination-git
4 pkgver=20110808
5 pkgrel=1
6 pkgdesc="A set of utilities for creating robust pagination tools throughout a django application"
7 arch=('any')
8 url="https://launchpad.net/linaro-django-pagination"
9 license=('BSD')
10 depends=('django')
11 makedepends=('git')
12 conflicts=('')
13 md5sums=()
14 install=django-pagination-git.install
16 _gitroot="git://github.com/zyga/django-pagination.git"
17 _gitname="django-pagination"
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 build
40 package() {
41   cd "$srcdir/$_gitname-build"
43   python2 setup.py install --prefix=/usr --root="$pkgdir"
44   install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${_gitname}/COPYING"