# Contributor: Markus Juenemann # Maintainer: Markus Juenemann pkgname=mapnik pkgver=3.1.0 pkgrel=4 pkgdesc="An open source toolkit for developing mapping applications" url="https://mapnik.org/" arch="x86_64" license="LPGL-2.0-or-later" makedepends=" boost-dev cairo-dev freetype-dev gdal-dev harfbuzz-dev icu-dev libpng-dev libwebp-dev libxml2-dev postgresql-dev proj-dev python3 py3-setuptools sqlite-dev tiff-dev zlib-dev " subpackages="$pkgname-dev $pkgname-doc" source="https://github.com/mapnik/mapnik/releases/download/v$pkgver/mapnik-v$pkgver.tar.bz2" builddir="$srcdir/$pkgname-v$pkgver" build() { python3 scons/scons.py configure \ CUSTOM_CXXFLAGS="-DACCEPT_USE_OF_DEPRECATED_PROJ_API_H=ON" \ CUSTOM_CFLAGS="-DACCEPT_USE_OF_DEPRECATED_PROJ_API_H=ON" \ PREFIX=/usr \ DESTDIR="$pkgdir" \ --jobs=${JOBS:-2} \ --config=cache \ --implicit-cache \ --max-drift=1 python3 scons/scons.py \ --jobs=${JOBS:-2} \ --config=cache \ --implicit-cache \ --max-drift=1 } package() { python3 scons/scons.py install \ --jobs=${JOBS-2} \ --config=cache \ --implicit-cache \ --max-drift=1 } dev() { pkgdesc="Mapnik development files" mkdir -p "$subpkgdir"/usr/include/mapnik mv "$pkgdir"/usr/include/mapnik "$subpkgdir"/usr/include/mapnik } doc() { pkgdesc="Mapnik documentation" mkdir -p "$subpkgdir"/usr/share/docs/$pkgname/docs/ install -Dm644 $builddir/*.md "$subpkgdir"/usr/share/docs/$pkgname/ install -Dm644 $builddir/docs/* "$subpkgdir"/usr/share/docs/$pkgname/docs/ } sha512sums="089e619f4672e017b1aaf31836ade7e22d2a465f5a923f697935d8447d5dd0c2acb9ae6682d1c9035e58036c62685c2f38f75f0a106ee9b4ce6197e0357c47eb mapnik-v3.1.0.tar.bz2"