aboutsummaryrefslogtreecommitdiffstats
path: root/testing/mapnik/APKBUILD
blob: 91af162d42d662a4051151943e65127884f2261d (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
pkgname=mapnik
pkgver=3.0.0_rc1
_ver=${pkgver/_rc/-rc}
pkgrel=0
pkgdesc="Toolkit and API for developing mapping application"
url="http://mapnik.org/"
arch="all"
license="LGPL"
options=""
depends="python ttf-dejavu"
makedepends="freetype-dev libxml2-dev zlib-dev icu-dev proj4-dev
	     libjpeg-turbo-dev libpng-dev tiff-dev boost-dev
	     sqlite-dev postgresql-dev cairo-dev py-cairo-dev
	     harfbuzz-dev"
subpackages="$pkgname-dev"
source="$pkgname-$_ver.tar.gz::https://github.com/mapnik/mapnik/archive/v$_ver.tar.gz
	"

_builddir="$srcdir"/$pkgname-$_ver
prepare() {
	cd "$_builddir" || return 1
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build () {
	cd "$_builddir"
	python scons/scons.py sh configure \
		DESTDIR="$pkgdir" \
		SYSTEM_FONTS="/usr/share/fonts/TTF/" \
		CUSTOM_CFLAGS="$CFLAGS" \
		CUSTOM_LDFLAGS="$LDFLAGS" \
		PREFIX="/usr" \
		|| return 1
	make
}

package() {
	cd "$_builddir"
	make install || return 1
}

md5sums="c7231574639ec2688d957831a5c16341  mapnik-3.0.0-rc1.tar.gz"
sha256sums="b4aef9a5910b25cb694b1a67beaf3e8dfbd4d629615d5012eb2378f39a63b379  mapnik-3.0.0-rc1.tar.gz"
sha512sums="00fd5479424dc06c9e22e201495fe6a178e5f656445bb5739045c87eda7985bad1598e1eb34bc9bcce6cae2b72200489728a059ba08f32283ddc45dd8d6dc47b  mapnik-3.0.0-rc1.tar.gz"