aboutsummaryrefslogtreecommitdiffstats
path: root/testing/gdal/APKBUILD
blob: 0187f2db60c55ee38acc22afd3d0f1a1ab8f1fdb (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
# Contributor: Trevor R.H. Clarke <trevor@notcows.com>
# Maintainer: Trevor R.H. Clarke <trevor@notcows.com>
pkgname=gdal
pkgver=2.1.0
pkgrel=1
pkgdesc="A translator library for raster and vector geospatial data formats"
url="http://gdal.org"
arch="x86_64"
license="MIT"
depends=""
depends_dev="gdal"
makedepends="giflib-dev jpeg-dev libjpeg-turbo-dev libpng-dev tiff-dev zlib-dev swig python-dev"
subpackages="$pkgname-dev py-$pkgname:py"
source="http://download.osgeo.org/$pkgname/$pkgver/$pkgname-$pkgver.tar.xz"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"

	./configure --prefix=/usr || return 1
	make || return 1

	cd swig/python
	python setup.py build
}

package() {
	cd "$builddir"

	make DESTDIR="$pkgdir" install || return 1
	chmod -x "$pkgdir"/usr/include/*.h
}

py() {
	pkgdesc="$pkgname (python bindings)"

	cd "$builddir"/swig/python
	python setup.py install --prefix=/usr --root="$subpkgdir" || return 1

	chmod a+x scripts/*
	install -d "$subpkgdir"/usr/bin
	install -m755 scripts/*.py "$subpkgdir"/usr/bin/
}

md5sums="1a6e720597efd84661869fb66b6986e4  gdal-2.1.0.tar.xz"
sha256sums="568b43441955b306364fcf97fb47d4c1512ac6f2f5f76b2ec39a890d2418ee03  gdal-2.1.0.tar.xz"
sha512sums="e88f84ae955c3e755625963ec1f7d651ce21a5216024c46cad406458695d70cd38e3e86dd2b8e1137151b407ca43bf0e81cf5ee503c750dd62a64dfebf9d9d7b  gdal-2.1.0.tar.xz"