blob: ac0fa5a93b32d9bb4adf76e9800af82b8d7f88ef (
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
63
64
65
66
67
68
69
70
71
72
73
|
# Contributor: Markus Juenemann <markus@juenemann.net>
# Maintainer: Markus Juenemann <markus@juenemann.net>
pkgname=mapnik
pkgver=3.0.20
pkgrel=1
pkgdesc="An open source toolkit for developing mapping applications"
url="http://mapnik.org/"
arch="x86_64 ppc64le"
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
proj4-dev
python3
py3-setuptools
sqlite-dev
tiff-dev
zlib-dev
"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="https://github.com/mapnik/mapnik/releases/download/v$pkgver/mapnik-v$pkgver.tar.bz2
icu-62.patch"
builddir="$srcdir/$pkgname-v$pkgver"
build() {
cd "$builddir"
python3 scons/scons.py configure \
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() {
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
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="f957ee9ca63fc597baa513b226ba4a6ab310138c8daea3f8dd9af9fdb2f4fa10c52f1710a839549492403859c2b312e39bca2c5c4f7bc579dd9662a6438e2e39 mapnik-v3.0.20.tar.bz2
370d0fb7473f48dfb6fd59ddadb6d3fca83547721d67f1e4e7d40c266ef229c4e05a319aca85b7ac73411dc51755b3aaf710f22fb7b7ea8e4558970e6b5432ea icu-62.patch"
|