summaryrefslogtreecommitdiff
path: root/gis/qgis/qgis.SlackBuild
diff options
context:
space:
mode:
authorBenjamin Trigona-Harany <slackbuilds@jaxartes.net>2019-11-10 19:34:17 -0800
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2019-11-23 16:01:56 +0700
commit35e3d0b1cde2d1ec0b8e7393227115301914f11a (patch)
tree809720e3b685a8f99907c2ca9d25519fb363a8c5 /gis/qgis/qgis.SlackBuild
parentb2c672b4522ef7a198ad72c6a226f52f35b701b8 (diff)
downloadslackbuilds-35e3d0b1cde2d1ec0b8e7393227115301914f11a.tar.gz
gis/qgis: Updated for version 3.10.0.
Diffstat (limited to 'gis/qgis/qgis.SlackBuild')
-rw-r--r--gis/qgis/qgis.SlackBuild71
1 files changed, 20 insertions, 51 deletions
diff --git a/gis/qgis/qgis.SlackBuild b/gis/qgis/qgis.SlackBuild
index 3d24b91656..ad24ea53e7 100644
--- a/gis/qgis/qgis.SlackBuild
+++ b/gis/qgis/qgis.SlackBuild
@@ -1,9 +1,9 @@
#!/bin/sh
-# Slackware build script for Quantum GIS
+# Slackware build script for QGIS
# Copyright 2011 David Spencer, Baildon, West Yorkshire, U.K.
-# Copyright 2013 Benjamin Trigona-Harany
+# Copyright 2013-2019 Benjamin Trigona-Harany
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,7 +24,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=qgis
-VERSION=${VERSION:-2.18.18}
+VERSION=${VERSION:-3.10.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -70,26 +70,15 @@ 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 {} \;
-WITHGRASS=""
if pkg-config --exists grass; then
WITHGRASS="-DGRASS_PREFIX=$(pkg-config --variable=prefix grass)"
+else
+ WITHGRASS=""
fi
-WITHSERVER="-DWITH_SERVER=FALSE"
-CGIBINDIR="${CGIBINDIR:-/var/www/cgi-bin/qgis}"
-if [ "${SERVER:-no}" = "yes" ]; then
- WITHSERVER="-DWITH_SERVER=TRUE -DQGIS_CGIBIN_SUBDIR=$CGIBINDIR"
-fi
-
-WITHNINJA=""
-if [ "${NINJA:-no}" = "yes" ]; then
- WITHNINJA="-GNinja"
-fi
-
-# fix double qjson target
-patch -p1 < $CWD/qjson.cmake.diff
+sed -i 's|${SIP_BINARY_PATH}|/usr/bin/python3-sip|' cmake/SIPMacros.cmake
-mkdir build
+mkdir -p build
cd build
cmake .. \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
@@ -99,51 +88,31 @@ cd build
-DQGIS_LIB_SUBDIR=lib${LIBDIRSUFFIX} \
-DQGIS_LIBEXEC_SUBDIR=lib${LIBDIRSUFFIX}/qgis \
-DQGIS_PLUGIN_SUBDIR=lib${LIBDIRSUFFIX}/qgis \
- -DWITH_INTERNAL_QWTPOLAR=FALSE \
- -DQWTPOLAR_INCLUDE_DIR=/usr/include/qwt \
+ -DWITH_QWTPOLAR=TRUE \
+ -DWITH_CUSTOM_WIDGETS=TRUE \
+ -DBINDINGS_GLOBAL_INSTALL=TRUE \
+ -DQWT_INCLUDE_DIR=/usr/include/qt5/qwt \
+ -DQSCINTILLA_INCLUDE_DIR=/usr/include/qt5 \
-DENABLE_TESTS=FALSE \
- $WITHSERVER \
- $WITHGRASS \
- $WITHNINJA
+ -DWITH_3D=TRUE \
+ $WITHGRASS
- if [ -z "$WITHNINJA" ]; then
- make install -j2 DESTDIR=$PKG
- else
- DESTDIR=$PKG ninja install
- fi
-cd -
+make install DESTDIR=$PKG
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
find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
-install -D -m 0644 debian/qgis.desktop \
- $PKG/usr/share/applications/qgis.desktop
-install -D -m 0644 debian/qgis.xml \
- $PKG/usr/share/mime/packages/qgis.xml
-sed -i "s_image/jpeg;__" $PKG/usr/share/applications/qgis.desktop
-
-mkdir -p $PKG/usr/share/pixmaps
-ln -s /usr/share/qgis/images/icons/qgis-icon.png $PKG/usr/share/pixmaps/qgis.png
-ln -s /usr/share/qgis/images/icons/qgis-mime-icon.png $PKG/usr/share/pixmaps/qgis-mime.png
+mv $PKG/usr/share/metainfo $PKG/usr/share/appdata
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+mkdir -p $PKG/usr/doc
+mv $PKG/usr/share/$PRGNAM/doc $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
- doc/AUTHORS BUGS doc/CONTRIBUTORS COPYING ChangeLog \
- doc/DONORS Exception_to_GPL_for_Qt.txt INSTALL NEWS \
- PROVENANCE README.md doc/SPONSORS doc/TRANSLATORS \
+ ChangeLog Exception_to_GPL_for_Qt.txt NEWS \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-cat $CWD/README.server > $PKG/usr/doc/$PRGNAM-$VERSION/README.server
-
-# Move a couple of optional server files to a more appropriate place -- they
-# need to be properly customised (and the server works without them).
-if [ -d $PKG/$CGIBINDIR ]; then
- mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/examples
- mv $PKG/$CGIBINDIR/wms_metadata.xml $PKG/$CGIBINDIR/admin.sld \
- $PKG/usr/doc/$PRGNAM-$VERSION/examples
-fi
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc