updated on Sun Jan 22 16:00:49 UTC 2012
[aur-mirror.git] / tilelite-hg / PKGBUILD
blob4360e28058b84da8e7be608045f7802e48646ccf
1 # Contributor: AJ Ashton <aj.ashton@gmail.com>
2 pkgname=tilelite-hg
3 pkgver=80
4 pkgrel=1
5 pkgdesc="Lightweight Python tile-server using Mapnik rendering and designed to serve tiles in the OSM (OpenStreetMap) scheme."
6 arch=('any')
7 url="http://bitbucket.org/springmeyer/tilelite"
8 license=('BSD')
9 depends=('mapnik' 'python2')
10 makedepends=('mercurial')
11 source=()
12 md5sums=()
14 _hgroot="http://bitbucket.org/springmeyer"
15 _hgrepo="tilelite"
17 build() {
18   cd "$srcdir"
19   msg "Connecting to Mercurial server..."
21   if [ -d $_hgrepo ] ; then
22     cd $_hgrepo
23     hg pull -u || return 1
24     msg "The local files are updated."
25   else
26     hg clone $_hgroot $_hgrepo || return 1
27   fi
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"
36   # BUILD
38   python2 setup.py install --root=$pkgdir || return 1