# Contributor: Balló György # Contributor: Sergej Pupykin # Contributor: David Dent # Contributor: orbisvicis # Maintainer: Fritz Engelbrecht # Maintainer: David Hummel pkgname=mapnik-git pkgver=4.0.0.g123232ffd pkgrel=2 pkgdesc='Free Toolkit for developing mapping applications. Above all Mapnik is about rendering beautiful maps (git version)' arch=('i686' 'x86_64') url='http://mapnik.org/' license=('LGPL2.1') depends=('boost-libs' 'cairo' 'freetype2' 'gdal' 'harfbuzz' 'icu' 'libjpeg-turbo' 'libpng' 'libtiff' 'libwebp' 'libxml2' 'mapbox-variant' 'postgresql-libs' 'proj' 'protozero' 'python' 'sqlite' 'ttf-dejavu') makedepends=('boost' 'cmake' 'git') conflicts=('mapnik') provides=('mapnik') source=('git+https://github.com/mapnik/mapnik.git' 'mapnik-cmake-harfbuzz.patch' 'mapnik-datasource-ogr-test.patch' 'git+https://github.com/mapnik/test-data.git' 'git+https://github.com/mapbox/geometry.hpp.git' 'git+https://github.com/mapbox/polylabel.git') sha256sums=('SKIP' '90f541c0845e3c7005564fa113771ce01cf2bcfd57662b7fa8849aabf4151638' '3fcf178e646df526e9a5c278f56ad16e4f75d2f27108e7b33419649a46b92f52' 'SKIP' 'SKIP' 'SKIP') pkgver() { cd mapnik || exit printf "4.0.0.%s" "$(git describe --all --long | cut -d- -f3)" } prepare() { cd mapnik || exit patch -Np1 < ../mapnik-cmake-harfbuzz.patch patch -Np1 < ../mapnik-datasource-ogr-test.patch git submodule init \ test/data \ deps/mapbox/geometry \ deps/mapbox/polylabel git config submodule.test/data.url "$srcdir"/test-data git config submodule.deps/mapbox/geometry.url "$srcdir"/geometry.hpp git config submodule.deps/mapbox/polylabel.url "$srcdir"/polylabel git -c protocol.file.allow=always submodule update \ test/data \ deps/mapbox/geometry \ deps/mapbox/polylabel } build() { cmake -B mapnik_build -S mapnik \ -DBUILD_DEMO_VIEWER:BOOL=OFF \ -DCMAKE_BUILD_TYPE:STRING=Release \ -DCMAKE_INSTALL_PREFIX:PATH=/usr \ -DFONTS_INSTALL_DIR:PATH=share/fonts/TTF \ -DUSE_EXTERNAL_MAPBOX_PROTOZERO:BOOL=ON \ -DUSE_EXTERNAL_MAPBOX_VARIANT:BOOL=ON cmake --build mapnik_build } check() { ctest --output-on-failure --test-dir mapnik_build } package(){ DESTDIR="$pkgdir" cmake --install mapnik_build --strip # License install -Dm644 "$srcdir"/mapnik/COPYING "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE # Remove bundled fonts in favor of those from 'ttf-dejavu' rm -rf "$pkgdir"/usr/share/fonts }