1 # Contributor: AJ Ashton <aj.ashton@gmail.com>
5 pkgdesc="Lightweight Python tile-server using Mapnik rendering and designed to serve tiles in the OSM (OpenStreetMap) scheme."
7 url="http://bitbucket.org/springmeyer/tilelite"
9 depends=('mapnik' 'python2')
10 makedepends=('mercurial')
14 _hgroot="http://bitbucket.org/springmeyer"
19 msg "Connecting to Mercurial server..."
21 if [ -d $_hgrepo ] ; then
23 hg pull -u || return 1
24 msg "The local files are updated."
26 hg clone $_hgroot $_hgrepo || return 1
29 msg "Mercurial checkout done or server timeout"
30 msg "Starting make..."
32 rm -rf "$srcdir/$_hgrepo-build"
33 cp -r "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-build"
34 cd "$srcdir/$_hgrepo-build"
38 python2 setup.py install --root=$pkgdir || return 1