diff options
Diffstat (limited to 'gis/postgis')
-rw-r--r-- | gis/postgis/README | 10 | ||||
-rw-r--r-- | gis/postgis/doinst.sh | 9 | ||||
-rw-r--r-- | gis/postgis/postgis.SlackBuild | 32 | ||||
-rw-r--r-- | gis/postgis/postgis.info | 10 |
4 files changed, 42 insertions, 19 deletions
diff --git a/gis/postgis/README b/gis/postgis/README index 67c3bac5b7..a493cb969d 100644 --- a/gis/postgis/README +++ b/gis/postgis/README @@ -1,12 +1,10 @@ -PostGIS adds support for geographic objects to the PostgreSQL object-relational -database. In effect, PostGIS "spatially enables" the PostgreSQL server, -allowing it to be used as a backend spatial database for geographic information -systems (GIS). +PostGIS adds support for geographic objects to the PostgreSQL +object-relational database. In effect, PostGIS "spatially enables" +the PostgreSQL server, allowing it to be used as a backend spatial +database for geographic information systems (GIS). SFCGAL is an optional dependency for advanced 3D support. -protobuf-c is an optional dependency for MapBox vector tile support. - To disable the GTK-based graphical interface for shp2pgsql, set GUI=no. To include the shp2pgsql plugin for pgAdmin set PGADMIN=yes. diff --git a/gis/postgis/doinst.sh b/gis/postgis/doinst.sh new file mode 100644 index 0000000000..65c7e2eeb9 --- /dev/null +++ b/gis/postgis/doinst.sh @@ -0,0 +1,9 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi + +if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then + if [ -x /usr/bin/gtk-update-icon-cache ]; then + /usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi diff --git a/gis/postgis/postgis.SlackBuild b/gis/postgis/postgis.SlackBuild index b47e5595c7..6c14107eda 100644 --- a/gis/postgis/postgis.SlackBuild +++ b/gis/postgis/postgis.SlackBuild @@ -1,9 +1,10 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for PostGIS # Copyright 2009 Peter Sarkoci <sarkoci@math.sk> -# Maintained 2013-2020 by Benjamin Trigona-Harany <slackbuilds@jaxartes.net> +# Copyright 2013-2021 Benjamin Trigona-Harany <slackbuilds@jaxartes.net> +# Copyright 2023-2024 Giancarlo Dessi, Cagliari, IT # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,10 +24,13 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=postgis -VERSION=${VERSION:-3.0.2} -BUILD=${BUILD:-1} +VERSION=${VERSION:-3.4.2} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -36,7 +40,11 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -76,15 +84,19 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +pgbindir=$(pg_config --bindir) + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ --build=$ARCH \ --prefix=/usr \ + --bindir=$pgbindir \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --datarootdir=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ + --without-protobuf \ $SHP2PGSQL_GUI \ --build=$ARCH-slackware-linux @@ -99,7 +111,6 @@ if [ "$PGADMIN" = "yes" ] ; then fi mkdir -p $PKG/usr/bin -pgbindir=$(pg_config --bindir) cd $PKG/$pgbindir for f in *; do base=`basename $f` @@ -112,14 +123,19 @@ mkdir -p $PKG/usr/man/man1 cp -a doc/man/* $PKG/usr/man/man1 gzip -9 $PKG/usr/man/man1/*.1 +mv $PKG/usr/icons $PKG/usr/share +mv $PKG/usr/applications $PKG/usr/share + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ - COPYING CREDITS ChangeLog NEWS README.postgis TODO \ + COPYING CREDITS ChangeLog NEWS README.postgis TODO LICENSE.TXT \ $PKG/usr/doc/$PRGNAM-$VERSION +mv $PKG/usr/doc/postgresql* $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/gis/postgis/postgis.info b/gis/postgis/postgis.info index 7a85decceb..8651201812 100644 --- a/gis/postgis/postgis.info +++ b/gis/postgis/postgis.info @@ -1,10 +1,10 @@ PRGNAM="postgis" -VERSION="3.0.2" +VERSION="3.4.2" HOMEPAGE="http://postgis.org" -DOWNLOAD="http://download.osgeo.org/postgis/source/postgis-3.0.2.tar.gz" -MD5SUM="37b7b3a5e6851eae289bb87ca2f1e487" +DOWNLOAD="https://download.osgeo.org/postgis/source/postgis-3.4.2.tar.gz" +MD5SUM="632abda8b4267af437db6cde1bc9d9dc" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="gdal postgresql" -MAINTAINER="Benjamin Trigona-Harany" -EMAIL="slackbuilds@jaxartes.net" +MAINTAINER="Giancarlo Dessi" +EMAIL="slack@giand.it" |