updated on Wed Jan 11 12:00:27 UTC 2012
[aur-mirror.git] / django-authopenid-hg / PKGBUILD
blobc45dfb84e0419c846aa17bc136703e2542bfa661
1 pkgname=django-authopenid-hg
2 pkgver=168
3 pkgrel=1
4 pkgdesc="authenticate your users with OpenID in Django apps"
5 arch=(any)
6 url="http://bitbucket.org/benoitc/django-authopenid"
7 license=('Apache License 2')
8 depends=('django')
9 source=()
10 md5sums=()
12 _hgroot='https://bitbucket.org/benoitc'
13 _hgrepo='django-authopenid'
15 build() { 
16     cd $srcdir
18     if [ -d $_hgrepo/.hg ]; then
19         (cd $_hgrepo && hg up -r $pkgver)
20     else
21         hg clone -r $pkgver $_hgroot/$_hgrepo $_hgrepo
22     fi
24     msg 'Mercurial checkout done or server timeout'
26     if [ -d $_hgrepo-build ]; then
27         msg 'Removing old build directory'
28         rm -rf $_hgrepo-build
29     fi
30     
31     msg 'Copying repository to another build directory'
32     cp -r $srcdir/$_hgrepo $srcdir/$_hgrepo-build
33     
34     msg 'Starting build'
35     cd $srcdir/$_hgrepo-build
37     msg 'Running setup.py'
38     
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