1 #Contributor: Bruno Galeotti <bravox87 at gmail.com>
2 pkgname=django-annoying-hg
5 pkgdesc='Django application that try to eliminate annoying things in Django framework'
7 url='http://bitbucket.org/offline/django-annoying/'
9 makedepends=('mercurial')
10 provides=('django-annoying')
13 _hgroot='http://bitbucket.org/offline/'
14 _hgrepo='django-annoying'
19 if [ -d $_hgrepo/.hg ]; then
20 (cd $_hgrepo && hg up -r $pkgver)
22 hg clone -r $pkgver $_hgroot/$_hgrepo $_hgrepo
25 msg 'Mercurial checkout done or server timeout'
27 if [ -d $_hgrepo-build ]; then
28 msg 'Removing old build directory'
32 msg 'Copying repository to another build directory'
33 cp -r $srcdir/$_hgrepo $srcdir/$_hgrepo-build
36 cd $srcdir/$_hgrepo-build
38 msg 'Running setup.py'
39 python2 setup.py build || return 1
40 python2 setup.py install --root=$pkgdir || return 1