# Contributor: Bjoern Schilberg # Maintainer: Bjoern Schilberg pkgname=postgis pkgver=2.4.1 pkgrel=1 pkgdesc="PostGIS is a spatial database extender for PostgreSQL object-relational database." url="http://postgis.net" arch="all !armhf !aarch64 !ppc64le" # limited by geos license="GPL-2.0-or-later" depends="postgresql perl" makedepends="postgresql-dev geos-dev gdal-dev libxml2-dev proj4-dev perl-dev json-c-dev pcre-dev" subpackages="$pkgname-dev $pkgname-doc" source="http://download.osgeo.org/postgis/source/$pkgname-$pkgver.tar.gz json-c-0.13.patch" builddir="$srcdir/$pkgname-$pkgver" build() { cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --disable-gtktest \ --disable-nls \ --disable-rpath \ --without-protobuf make -j1 } package() { cd "$builddir" make DESTDIR="$pkgdir" install chmod -x "$pkgdir"/usr/include/*.h } sha512sums="a0baff97f15a02dfd466c38923a8fad81375fa06423c51ccaf6fb97a824a4010b12f152afd3f82ce9089983816b918d67c25de8fdabca27da71fb64309d01fc8 postgis-2.4.1.tar.gz f82ed289b83dfb6d5162e5b05607354acf793a8f53940bbefcf9f77b8337f585ae7f07a88ad62afed0f78720f06d8a0c4fb4aebf23244a7effc35fd76173d559 json-c-0.13.patch"