1 # Contributor: Philipp Schmidt <philschmidt at gmx dot net>
3 pkgname=python-flickzeug-hg
6 pkgdesc="The Swiss Army knife of Python web development debugging."
8 url="http://dev.pocoo.org/projects/flickzeug/"
11 makedepends=('mercurial' 'setuptools')
15 _hgroot="http://dev.pocoo.org/hg/flickzeug-main"
20 msg "Connecting to Mercurial server...."
22 if [ -d $_hgrepo ] ; then
24 hg pull -u || return 1
25 msg "The local files are updated."
27 hg clone $_hgroot $_hgrepo || return 1
30 msg "Mercurial checkout done or server timeout"
32 rm -rf "$srcdir/$_hgrepo-build"
33 cp -r "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-build"
34 cd "$srcdir/$_hgrepo-build"
36 msg "Starting setup.py..."
38 python setup.py install --root=$pkgdir/
39 install -D -m644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE