1 #Maintainer: Konstantinos Karantias <kostis[at]gtklocker[dot]com>
5 pkgdesc='Non-relational backend support for Django via the new multi-db SQL compiler layer.'
7 url='http://bitbucket.org/wkornewald'
12 makedepends=('mercurial' 'python2' 'setuptools')
13 optdepends=('django-mongodb-engine: MongoDB Django module')
15 _hgroot='http://bitbucket.org/wkornewald'
16 _hgrepo='django-nonrel'
22 if [ -d $_hgrepo/.hg ]; then
23 (cd $_hgrepo && hg up -r $pkgver)
25 hg clone -r $pkgver $_hgroot/$_hgrepo $_hgrepo
28 msg 'Mercurial checkout done or server timeout.'
30 if [ -d $_hgrepo-build ]; then
31 msg 'Removing old build directory.'
35 msg 'Copying repository to another build directory.'
36 cp -r $srcdir/$_hgrepo $srcdir/$_hgrepo-build
38 msg 'Starting the *real* build.'
39 cd $srcdir/$_hgrepo-build
40 python2 setup.py build
44 cd $srcdir/$_hgrepo-build
45 python2 setup.py install --root=$pkgdir --optimize=1