# Contributor: Trevor R.H. Clarke # Maintainer: Trevor R.H. Clarke pkgname=gdal pkgver=2.2.3 pkgrel=0 pkgdesc="A translator library for raster and vector geospatial data formats" url="http://gdal.org" arch="all" license="MIT" depends="" depends_dev="gdal" makedepends="giflib-dev jpeg-dev libjpeg-turbo-dev libpng-dev tiff-dev zlib-dev swig python2-dev curl-dev linux-headers" 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 \ --with-curl=/usr/bin/curl-config make cd swig/python python2 setup.py build } package() { cd "$builddir" make DESTDIR="$pkgdir" install chmod -x "$pkgdir"/usr/include/*.h } py() { pkgdesc="$pkgname (python bindings)" cd "$builddir"/swig/python python2 setup.py install --prefix=/usr --root="$subpkgdir" chmod a+x scripts/* install -d "$subpkgdir"/usr/bin install -m755 scripts/*.py "$subpkgdir"/usr/bin/ } sha512sums="205c1723e2c5d7c1c5b6bb0a92e880db80eae5944da8f00705e7acc58a664474f7d3eb6e2783a1cd6eef7c6b43c76f94c75d109f43805438e8f0560b2f4843cf gdal-2.2.3.tar.xz"