1 # Maintainer: BeholdMyGlory <larvid@gmail.com>
3 pkgname=python3-genshi-hg
6 pkgdesc="Python toolkit for stream-based generation of output for the web."
7 url="http://genshi.edgewall.org/"
11 makedepends=('python-distribute' 'mercurial')
13 _hgroot="https://bitbucket.org/hodgestar"
18 msg "Connecting to Mercurial server...."
20 if [ -d $_hgrepo ] ; then
23 msg "The local files are updated."
25 echo 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 python setup.py install --root=$pkgdir
36 install -D -m0644 COPYING $pkgdir/usr/share/licenses/$pkgname/COPYING