summaryrefslogtreecommitdiffstats
path: root/gis/gpxsee/gpxsee.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'gis/gpxsee/gpxsee.SlackBuild')
-rw-r--r--gis/gpxsee/gpxsee.SlackBuild23
1 files changed, 17 insertions, 6 deletions
diff --git a/gis/gpxsee/gpxsee.SlackBuild b/gis/gpxsee/gpxsee.SlackBuild
index a048645b93..be7b61c536 100644
--- a/gis/gpxsee/gpxsee.SlackBuild
+++ b/gis/gpxsee/gpxsee.SlackBuild
@@ -1,8 +1,9 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for GPXSee
-# Copyright 2018-2020, Nikolay Korotkiy <sikmir@gmail.com>
+# Copyright 2018-2024, Nikolay Korotkiy <sikmir@gmail.com>
+# Copyright 2024 since version 13.18 titopoquito <titopoquito@gmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,10 +23,13 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=gpxsee
-VERSION=${VERSION:-7.20}
+VERSION=${VERSION:-13.18}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -35,7 +39,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}
@@ -71,7 +82,7 @@ find -L . \
# Fix display issue: square character instead of a white space
# See https://github.com/tumic0/GPXSee/issues/93
-patch -p1 < $CWD/fix_font_narrow_space.diff
+patch -p0 < $CWD/fix_font_narrow_space.diff
lrelease-qt5 gpxsee.pro
qmake-qt5 \
@@ -93,4 +104,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