1 pkgname=django-authopenid-hg
4 pkgdesc="authenticate your users with OpenID in Django apps"
6 url="http://bitbucket.org/benoitc/django-authopenid"
7 license=('Apache License 2')
12 _hgroot='https://bitbucket.org/benoitc'
13 _hgrepo='django-authopenid'
18 if [ -d $_hgrepo/.hg ]; then
19 (cd $_hgrepo && hg up -r $pkgver)
21 hg clone -r $pkgver $_hgroot/$_hgrepo $_hgrepo
24 msg 'Mercurial checkout done or server timeout'
26 if [ -d $_hgrepo-build ]; then
27 msg 'Removing old build directory'
31 msg 'Copying repository to another build directory'
32 cp -r $srcdir/$_hgrepo $srcdir/$_hgrepo-build
35 cd $srcdir/$_hgrepo-build
37 msg 'Running setup.py'
39 python2 setup.py build || return 1
40 python2 setup.py install --root=$pkgdir --optimize=1 || return 1
41 rm -rf $pkgdir/usr/lib/python2.7/site-packages/tests