# Contributor: Bjoern Schilberg # Maintainer: Bjoern Schilberg pkgname=postgis pkgver=3.3.3 pkgrel=1 pkgdesc="spatial database extender for PostgreSQL object-relational database" url="https://postgis.net/" arch="all" license="GPL-2.0-or-later" depends="perl" makedepends=" gdal-dev geos-dev json-c-dev libxml2-dev pcre2-dev perl-dev postgresql-dev proj-dev protobuf-c-dev sfcgal-dev " subpackages="$pkgname-doc" source="https://download.osgeo.org/postgis/source/postgis-$pkgver.tar.gz" options="!check" # tests depends on a running PostgreSQL server build() { ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr make } package() { depends="$depends postgresql$(pg_config --major-version)" make -j1 DESTDIR="$pkgdir" install cd "$pkgdir" mkdir -p usr/bin local i; for i in ."$(pg_config --bindir)"/*; do ln -s "${i#.}" usr/bin/${i##*/} done } sha512sums=" 0025a8a5c6be7e18dfb97a6a04c468a9da2d6e99462d20eec7bddf4048b8f2fa1e8029be9f819950c910a6f89190e8295f10e8dab9b4885d03d3dbcce41380c2 postgis-3.3.3.tar.gz "