diff options
Diffstat (limited to 'gis/postgis/postgis.SlackBuild')
-rw-r--r-- | gis/postgis/postgis.SlackBuild | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/gis/postgis/postgis.SlackBuild b/gis/postgis/postgis.SlackBuild index a56e074bda..6c14107eda 100644 --- a/gis/postgis/postgis.SlackBuild +++ b/gis/postgis/postgis.SlackBuild @@ -3,7 +3,8 @@ # Slackware build script for PostGIS # Copyright 2009 Peter Sarkoci <sarkoci@math.sk> -# Maintained 2013-2021 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 @@ -26,8 +27,8 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=postgis -VERSION=${VERSION:-3.1.4} -BUILD=${BUILD:-1} +VERSION=${VERSION:-3.4.2} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -39,9 +40,6 @@ if [ -z "$ARCH" ]; then esac fi -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -86,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 @@ -109,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` @@ -122,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 |