1 # Contributor: Ryan Coyner <rcoyner@gmail.com>
2 # Contributor: RĂ©mi Audebert <quaero.galileo@gmail.com>
4 pkgname=django-contact-form-hg
7 pkgdesc="An extensible contact-form application for Django"
9 url="http://bitbucket.org/ubernostrum/django-contact-form"
12 makedepends=('mercurial')
13 provides=('django-contact-form')
14 conflicts=('django-contact-form')
16 _hgroot="http://bitbucket.org/ubernostrum/django-contact-form"
17 _hgrepo="django-contact-form"
21 msg "Connecting to Mercurial server...."
23 if [ -d $_hgrepo ] ; then
25 hg pull -u || return 1
26 msg "The local files are updated."
28 hg clone $_hgroot $_hgrepo || return 1
31 msg "Mercurial checkout done or server timeout"
33 rm -rf "$srcdir/$_hgrepo-build"
34 cp -r "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-build"
35 cd "$srcdir/$_hgrepo-build"
37 msg "Starting setup.py..."
39 python setup.py install --root=$pkgdir/ --optimize=1 || return 1
40 install -D -m644 LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE