1 # Maintainer: AJ Ashton <aj.ashton@gmail.com>
5 pkgdesc="Free toolkit for developing mapping applications."
7 url="http://mapnik.org"
9 depends=('freetype2' 'libxml2' 'icu' 'boost' 'pycairo' 'cairomm' 'gdal' 'curl')
10 makedepends=('git' 'pkgconfig' 'python2')
14 _gitroot=git://github.com/mapnik/mapnik.git
19 msg "Connecting to GIT server...."
21 if [[ -d "$_gitname" ]]; then
22 cd "$_gitname" && git pull origin
23 msg "The local files are updated."
25 git clone "$_gitroot" "$_gitname"
28 msg "GIT checkout done or server timeout"
29 msg "Starting build..."
31 rm -rf "$srcdir/$_gitname-build"
32 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build" --depth=1
33 cd "$srcdir/$_gitname-build"
35 # Patch SConstruct so libs end up in /usr/lib and not in /usr/lib64 on x86_64
36 msg "Fixing LIBDIR_SCHEMA..."
37 cd "$srcdir/$_gitname-build"
38 sed -i -e "/LIBDIR_SCHEMA=/s/lib64/lib/" SConstruct
40 python2 scons/scons.py configure PREFIX=/usr
42 python2 scons/scons.py
46 cd "$srcdir/$_gitname-build"
47 python2 scons/scons.py install DESTDIR="$pkgdir"
50 # vim:set ts=2 sw=2 et: