1 # Maintainer: Taylor Hedberg <t@tmh.cc>
2 pkgname=django-widget-tweaks-hg
5 pkgdesc="Tweak Django form field rendering in templates, not in Python-level form definitions"
7 url='http://pypi.python.org/pypi/django-widget-tweaks'
9 depends=(python2 django)
10 makedepends=('mercurial')
12 _hgroot="https://bitbucket.org/kmike"
13 _hgrepo="django-widget-tweaks"
18 msg "Connecting to Mercurial server...."
20 if [ -d $_hgrepo ] ; then
23 msg "The local files are updated."
25 hg clone $_hgroot $_hgrepo
28 msg "Mercurial checkout done or server timeout"
29 msg "Starting make..."
31 rm -rf "$srcdir/$_hgrepo-build"
32 cp -r "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-build"
33 cd "$srcdir/$_hgrepo-build"
35 python2 setup.py install --root=$pkgdir