# Maintainer: Greg White pkgname=postgis-src _pkgname=${pkgname} pkgver=3.3.1 pkgrel=1 pkgdesc="Postgres GIS extensions (from source)" arch=('i686' 'x86_64') url="http://postgis.net/" license=('GPL') depends=('postgresql' 'gdal' 'geos' 'json-c' 'libxml2' 'libxslt' 'protobuf-c' 'proj') optdepends=('gtk2-appmenu: for GTK support') provides=("$_pkgname=$pkgver") conflicts=($_pkgname postgis) source=("http://download.osgeo.org/postgis/source/postgis-${pkgver}.tar.gz") sha256sums=('91be800a72d748c5a3a4a00d82ac1de42023e29da61ece6ebf9c77fe228fcb1a') build() { cd postgis-${pkgver} ./configure --prefix=/usr --with-gdalconfig=/usr/bin/gdal-config --with-gui --with-projdir=/usr/lib make } package() { cd postgis-${pkgver} make DESTDIR="${pkgdir}" install # mkdir -p "${pkgdir}/usr/share/postgresql/extension/" # find . -name "*.control" | xargs cp -vt ${pkgdir}/usr/share/postgresql/extension/ }