updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / django-threaded-multihost-hg / PKGBUILD
blobe0602fce321ec9aaf4cdc7616f162a76199ee102
1 # Maintainer: Lubosz Sarnecki <lubosz at gmail com>
3 pkgname=django-threaded-multihost-hg
4 pkgver=20101010
5 pkgrel=1
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."
7 arch=(any)
8 url="http://bitbucket.org/bkroeze/django-threaded-multihost"
9 license=('GPL')
10 depends=('python' 'django')
11 conflicts=('django-threaded-multihost')
12 provides=('django-threaded-multihost')
13 source=()
14 md5sums=()
16 _hgbranch=http://bitbucket.org/bkroeze/django-threaded-multihost
17 _hgrepo=django-threaded-multihost
19 build() {
20         cd ${srcdir}
22         if [ -d ${_hgrepo} ]; then
23                 (cd ${_hgrepo} && hg pull -u) || return 1
24         else
25                 hg clone ${_hgbranch} || return 1
26         fi
28         msg "Mercurial clone done or server timeout"
29         
30         cd ${_hgrepo}
31   
32         python2 setup.py build || return 1
33         python2 setup.py install --root=$pkgdir --optimize=1 || return 1