summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 350ee97f39597b0552c864602eaea6977bef8584 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# $Id$
# Maintainer: Balló György <ballogyor+arch at gmail dot com>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: David Dent <thewinch@gmail.com>
# Contributor: orbisvicis <orbisvicis@gmail.com>
# Contributor: Fritz Engelbrecht <fritz.engl+arch@gmail.com>

pkgname=mapnik-git
_pkgname=mapnik
pkgver=3.0.22.1073.g94dd75666
pkgrel=1
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=('LGPL')
depends=('boost-libs' 'icu' 'libpng' 'libjpeg' 'libtiff' 'freetype2'
	 'libxml2' 'python2' 'proj' 'cairo' 'cairomm' 'python-cairo'
	 'postgresql-libs' 'postgis' 'gdal' 'curl' 'libltdl' 'libwebp')
optdepends=('libxslt:         Web Map Service'
			'python2-lxml:    Web Map Service'
			'python2-pillow:  Web Map Service'
			'python-nose:     Web Map Service'
			'apache:          Web Map Service'
			'mod_fastcgi:     Web Map Service - or:'
			'mod_fcgid:       Web Map Service - or:'
			'mod_wsgi2:       Web Map Service')
makedepends=('scons' 'boost' 'git')
conflicts=('mapnik')
provides=('mapnik=3.0.22')
options=(staticlibs)
install="mapnik.install"
source=("git+https://github.com/mapnik/mapnik.git")
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/$_pkgname"

	echo "3.0.22$(git describe --long | cut -c8- | sed 's/-/./g')"
}

prepare() {
	cd "$srcdir/$_pkgname"

	git submodule update --init deps/mapbox
}

build() {
	cd "$srcdir/$_pkgname"

	./configure \
		PREFIX="/usr" \
		INPUT_PLUGINS=all \
		DESTDIR="$pkgdir" \
		FREETYPE_INCLUDES=/usr/include/freetype2 \
		FREETYPE_LIBS=/usr/lib \
		CUSTOM_DEFINES="-DACCEPT_USE_OF_DEPRECATED_PROJ_API_H=1"
}

package(){
	cd "$srcdir/$_pkgname"
	JOBS=$(nproc) make DESTDIR="$pkgdir" install
}