blob: 1e0b49113dcecb7bfb6a2c4848da1e5d26512279 (
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
|
# Contributor: Markus Juenemann <markus@juenemann.net>
# Maintainer: Markus Juenemann <markus@juenemann.net>
pkgname=mapnik
pkgver=3.0.12
pkgrel=2
pkgdesc="An open source toolkit for developing mapping applications"
url="http://mapnik.org/"
arch="x86_64"
license="LPGL2+"
depends="boost boost-regex freetype zlib harfbuzz postgresql-client sqlite-libs cairo libpng libjpeg tiff libwebp libxml2 proj4 gdal icu"
depends_dev=""
makedepends="$depends_dev python scons boost-dev freetype-dev zlib-dev harfbuzz-dev postgresql-dev sqlite-dev cairo-dev libpng-dev tiff-dev libwebp-dev libxml2-dev proj4-dev gdal-dev icu-dev"
install=""
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() {
cd "$builddir"
python scons/scons.py configure PREFIX=/usr DESTDIR="$pkgdir" --jobs=${JOBS-2} --config=cache --implicit-cache --max-drift=1 || return 1
python scons/scons.py --jobs=${JOBS-2} --config=cache --implicit-cache --max-drift=1
}
package() {
cd "$builddir"
python 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 || return 1
mv "$pkgdir"/usr/include/mapnik "$subpkgdir"/usr/include/mapnik || return 1
}
doc() {
pkgdesc="Mapnik documentation"
mkdir -p "$subpkgdir"/usr/share/docs/$pkgname/docs/ || return 1
install -Dm644 $builddir/*.md "$subpkgdir"/usr/share/docs/$pkgname/
install -Dm644 $builddir/docs/* "$subpkgdir"/usr/share/docs/$pkgname/docs/
}
md5sums="221c1fa8e63f4cc93b3040e9382e3394 mapnik-v3.0.12.tar.bz2"
sha256sums="66a3d620c3ce543c91ea5b42a25079aca9a2a90f6079a2ce2a8714398fa57d6d mapnik-v3.0.12.tar.bz2"
sha512sums="db87cd76f21b46e1b92d303f02b4c3927e520e7b309f717967283831adfec53f15aab23e7e737ee4a79ff2c06948b94df7d193621aff99197d4dede9a4e329b7 mapnik-v3.0.12.tar.bz2"
|