summaryrefslogtreecommitdiffstats
path: root/gis/qmapshack/qmapshack.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'gis/qmapshack/qmapshack.SlackBuild')
-rw-r--r--gis/qmapshack/qmapshack.SlackBuild22
1 files changed, 14 insertions, 8 deletions
diff --git a/gis/qmapshack/qmapshack.SlackBuild b/gis/qmapshack/qmapshack.SlackBuild
index d2401f222e..9cffc01d79 100644
--- a/gis/qmapshack/qmapshack.SlackBuild
+++ b/gis/qmapshack/qmapshack.SlackBuild
@@ -1,7 +1,7 @@
#!/bin/sh
# Slackware build script for qmapshack
-# Copyright 2015 Daniel Stolarski <daniel.stolarski@gmail.com>
+# Copyright 2015-2020 Daniel Stolarski <daniel.stolarski@gmail.com>
#
# This program is free software. It comes without any warranty, to
# the extent permitted by applicable law. You can redistribute it
@@ -10,7 +10,7 @@
# http://sam.zoy.org/wtfpl/COPYING for more details.
PRGNAM=qmapshack
-VERSION=${VERSION:-1.12.1}
+VERSION=${VERSION:-1.15.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -46,19 +46,25 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
-cd $PRGNAM-$VERSION
+rm -rf $PRGNAM-V_${VERSION}
+tar xvf $CWD/${PRGNAM}-${VERSION}.tar.gz
+cd ${PRGNAM}-V_${VERSION}
+
+# Fix missing header file
+patch -p1 < $CWD/QPainterPath.patch
+
+# Apply patches provided in the source tree
+patch -p1 < FindPROJ4.patch
+patch -p1 < FindQuaZip5.patch
+
chown -R root:root .
+
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-# QuaZip path issue. thx to pAcAs for the hint
-whereis quazip |grep -qE "/include/\<quazip\>" && sed -i 's!quazip5!quazip!g' cmake/Modules/FindQuaZip.cmake
-
mkdir -p build
cd build
cmake \