1 # Maintainer: Lubosz Sarnecki <lubosz at gmail com>
3 pkgname=django-threaded-multihost-hg
6 pkgdesc="Provides multi-host utilities to Django projects by using threadlocals, middleware and simple utilities. Using the middleware provided, you can easily provide multi-site awareness to any project."
8 url="http://bitbucket.org/bkroeze/django-threaded-multihost"
10 depends=('python' 'django')
11 conflicts=('django-threaded-multihost')
12 provides=('django-threaded-multihost')
16 _hgbranch=http://bitbucket.org/bkroeze/django-threaded-multihost
17 _hgrepo=django-threaded-multihost
22 if [ -d ${_hgrepo} ]; then
23 (cd ${_hgrepo} && hg pull -u) || return 1
25 hg clone ${_hgbranch} || return 1
28 msg "Mercurial clone done or server timeout"
32 python2 setup.py build || return 1
33 python2 setup.py install --root=$pkgdir --optimize=1 || return 1