aboutsummaryrefslogtreecommitdiff
path: root/gis/postgis
diff options
context:
space:
mode:
authorGiancarlo Dessi <slack@giand.it>2023-09-15 06:48:08 +0900
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-09-17 00:10:18 +0700
commit8ed778e0d2486ea0b05c1ef82df7106373b886d3 (patch)
tree6f990fbcda899eb4d4959abcef99b12b1fe95fd6 /gis/postgis
parent17ca31acca3c8482ae4dee3268dcbcd601c0e5e7 (diff)
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>
Diffstat (limited to 'gis/postgis')
-rw-r--r--gis/postgis/doinst.sh9
-rw-r--r--gis/postgis/postgis.SlackBuild19
-rw-r--r--gis/postgis/postgis.info10
3 files changed, 26 insertions, 12 deletions
diff --git a/gis/postgis/doinst.sh b/gis/postgis/doinst.sh
new file mode 100644
index 000000000000..65c7e2eeb9aa
--- /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 a56e074bda11..60a2e0745eb4 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 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
diff --git a/gis/postgis/postgis.info b/gis/postgis/postgis.info
index 2e22df28f254..44a83ca97aaf 100644
--- a/gis/postgis/postgis.info
+++ b/gis/postgis/postgis.info
@@ -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"