updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / django-widget-tweaks-hg / PKGBUILD
blobb901316c01cca2fc95124187d352cbc7be5c6cac
1 # Maintainer: Taylor Hedberg <t@tmh.cc>
2 pkgname=django-widget-tweaks-hg
3 pkgver=10
4 pkgrel=1
5 pkgdesc="Tweak Django form field rendering in templates, not in Python-level form definitions"
6 arch=(any)
7 url='http://pypi.python.org/pypi/django-widget-tweaks'
8 license=(MIT)
9 depends=(python2 django)
10 makedepends=('mercurial')
12 _hgroot="https://bitbucket.org/kmike"
13 _hgrepo="django-widget-tweaks"
15 build() {
17   cd "$srcdir"
18   msg "Connecting to Mercurial server...."
20   if [ -d $_hgrepo ] ; then
21     cd $_hgrepo
22     hg pull -u
23     msg "The local files are updated."
24   else
25     hg clone $_hgroot $_hgrepo
26   fi
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