gis/postgis: Updated for version 3.4.0.

Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Giancarlo Dessi 2023-09-15 06:48:08 +09:00 committed by Willy Sudiarto Raharjo
parent 17ca31acca
commit 8ed778e0d2
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
3 changed files with 26 additions and 12 deletions

9
gis/postgis/doinst.sh Normal file
View File

@ -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

View File

@ -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 Giancarlo Dessi, Cagliari, IT
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -26,7 +27,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=postgis
VERSION=${VERSION:-3.1.4}
VERSION=${VERSION:-3.4.0}
BUILD=${BUILD:-1}
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,11 +84,14 @@ 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 \
@ -109,7 +110,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 +122,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

View File

@ -1,10 +1,10 @@
PRGNAM="postgis"
VERSION="3.1.4"
VERSION="3.4.0"
HOMEPAGE="http://postgis.org"
DOWNLOAD="https://download.osgeo.org/postgis/source/postgis-3.1.4.tar.gz"
MD5SUM="179954c38aac48efd606bcacbf3ca970"
DOWNLOAD="https://download.osgeo.org/postgis/source/postgis-3.4.0.tar.gz"
MD5SUM="8172bde8b031c64c0073e9d24bec8d8c"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="gdal postgresql protobuf-c"
MAINTAINER="Benjamin Trigona-Harany"
EMAIL="slackbuilds@jaxartes.net"
MAINTAINER="Giancarlo Dessi"
EMAIL="slack@giand.it"