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.SlackBuild28
1 files changed, 15 insertions, 13 deletions
diff --git a/gis/qmapshack/qmapshack.SlackBuild b/gis/qmapshack/qmapshack.SlackBuild
index c3f68f3c8e..3262134a32 100644
--- a/gis/qmapshack/qmapshack.SlackBuild
+++ b/gis/qmapshack/qmapshack.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for qmapshack
# Copyright 2015-2020 Daniel Stolarski <daniel.stolarski@gmail.com>
@@ -9,10 +9,13 @@
# To Public License, Version 2, as published by Sam Hocevar. See
# http://sam.zoy.org/wtfpl/COPYING for more details.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=qmapshack
-VERSION=${VERSION:-1.15.0}
+VERSION=${VERSION:-1.17.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -22,7 +25,14 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+# 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
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -47,16 +57,8 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-V_${VERSION}
-tar xvf $CWD/${PRGNAM}-${VERSION}.tar.gz
+tar xvf $CWD/${PRGNAM}-V_${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 . \
@@ -95,4 +97,4 @@ 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:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE