aboutsummaryrefslogtreecommitdiff
path: root/gis
diff options
context:
space:
mode:
authorIsaac Yu <isaacyu1@isaacyu1.com>2023-02-17 20:35:21 -0800
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-02-18 16:41:36 +0700
commit935a80afab1958bc7e31f4d59cb7c463903d63f4 (patch)
tree9038cb67318a24c173a5d7a113b4611def33ec70 /gis
parent561cc71c3844c84d4a4cc3a163403d17f55eeff5 (diff)
gis/libspatialindex: Update for 1.9.3 (+new maintainer)
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'gis')
-rw-r--r--gis/libspatialindex/libspatialindex.SlackBuild47
-rw-r--r--gis/libspatialindex/libspatialindex.info12
-rw-r--r--gis/libspatialindex/slack-desc2
3 files changed, 28 insertions, 33 deletions
diff --git a/gis/libspatialindex/libspatialindex.SlackBuild b/gis/libspatialindex/libspatialindex.SlackBuild
index 1880404756f8..4d75245d56eb 100644
--- a/gis/libspatialindex/libspatialindex.SlackBuild
+++ b/gis/libspatialindex/libspatialindex.SlackBuild
@@ -1,7 +1,9 @@
#!/bin/bash
# Slackware build script for libspatialindex
+#
# Copyright 2012 Alexander Bruy <alexander.bruy@gmail.com>
+# Copyright 2023 Isaac Yu <isaacyu1@isaacyu1.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,12 +26,13 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=libspatialindex
-TARBALLNAME=spatialindex
-VERSION=${VERSION:-1.7.1}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-1.9.3}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
+SRCNAM=spatialindex
+
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i586 ;;
@@ -38,9 +41,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
@@ -69,9 +69,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar xjvf $CWD/$TARBALLNAME-src-$VERSION.tar.bz2
-cd $TARBALLNAME-src-$VERSION
+rm -rf $SRCNAM-src-$VERSION
+tar xjvf $CWD/$SRCNAM-src-$VERSION.tar.bz2
+cd $SRCNAM-src-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
@@ -79,30 +79,25 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
-./configure \
- --prefix=/usr \
- --libdir=/usr/lib${LIBDIRSUFFIX} \
- --sysconfdir=/etc \
- --docdir=/usr/doc/$PRGNAM-$VERSION \
- --enable-static=no \
- --build=$ARCH-slackware-linux
-
-make
-make install DESTDIR=$PKG
+mkdir build
+cd build
+ cmake \
+ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DLIB_SUFFIX=${LIBDIRSUFFIX} \
+ -DCMAKE_BUILD_TYPE=Release ..
+ make
+ make install DESTDIR=$PKG
+cd ..
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
- AUTHORS COPYING ChangeLog INSTALL INSTALL.WIN NEWS README \
- $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS COPYING ChangeLog $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-rm -f $PKG/usr/lib*/*.la
-
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
diff --git a/gis/libspatialindex/libspatialindex.info b/gis/libspatialindex/libspatialindex.info
index add4a3cdb93c..c33aea67fa89 100644
--- a/gis/libspatialindex/libspatialindex.info
+++ b/gis/libspatialindex/libspatialindex.info
@@ -1,10 +1,10 @@
PRGNAM="libspatialindex"
-VERSION="1.7.1"
-HOMEPAGE="http://libspatialindex.github.com/"
-DOWNLOAD="http://download.osgeo.org/libspatialindex/spatialindex-src-1.7.1.tar.bz2"
-MD5SUM="15e5fcff393a56ab9aa7553e4a9cd64a"
+VERSION="1.9.3"
+HOMEPAGE="https://libspatialindex.github.io/"
+DOWNLOAD="https://github.com/libspatialindex/libspatialindex/releases/download/1.9.3/spatialindex-src-1.9.3.tar.bz2"
+MD5SUM="db89182e1ac9cb12a88db958de2797df"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
-MAINTAINER="Alexander Bruy"
-EMAIL="alexander.bruy@gmail.com"
+MAINTAINER="Isaac Yu"
+EMAIL="isaacyu1@isaacyu1.com"
diff --git a/gis/libspatialindex/slack-desc b/gis/libspatialindex/slack-desc
index 9056eb970329..361862a0046b 100644
--- a/gis/libspatialindex/slack-desc
+++ b/gis/libspatialindex/slack-desc
@@ -11,7 +11,7 @@ libspatialindex:
libspatialindex: This library provides and An extensible framework that will support
libspatialindex: robust spatial indexing methods and sophisticated spatial queries.
libspatialindex:
-libspatialindex: Homepage: http://libspatialindex.github.com/
+libspatialindex: Homepage: http://libspatialindex.github.io/
libspatialindex:
libspatialindex:
libspatialindex: