aboutsummaryrefslogtreecommitdiff
path: root/gis/gpsbabel/gpsbabel.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'gis/gpsbabel/gpsbabel.SlackBuild')
-rw-r--r--gis/gpsbabel/gpsbabel.SlackBuild32
1 files changed, 7 insertions, 25 deletions
diff --git a/gis/gpsbabel/gpsbabel.SlackBuild b/gis/gpsbabel/gpsbabel.SlackBuild
index c960dc68850c..3587d93bbdaa 100644
--- a/gis/gpsbabel/gpsbabel.SlackBuild
+++ b/gis/gpsbabel/gpsbabel.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for gpsbabel
-# Copyright 2017-2021 Kyle Guinn <elyk03@gmail.com>
+# Copyright 2017-2022 Kyle Guinn <elyk03@gmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=gpsbabel
-VERSION=${VERSION:-1.7.0}
+VERSION=${VERSION:-1.8.0}
SRCVER=${PRGNAM}_$(echo ${VERSION} | tr . _)
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -39,9 +39,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
@@ -90,26 +87,14 @@ sed -i \
-e '/ignoreVersionMismatch_/s/false/true/' \
gui/babeldata.h
-# Make it more FHS-compliant by moving gmapbase.html and the translations
-# to /usr/share. Tell the GUI where to find them. Thanks to Arch.
-sed -i 's|langPath_ = QApplication::applicationDirPath();|langPath_ = "/usr/share/gpsbabel";|' gui/mainwindow.cc
-sed -i 's|baseFile = QApplication::applicationDirPath() + "/gmapbase.html";|baseFile = "/usr/share/gpsbabel/gmapbase.html";|' gui/map.cc
-
# Resize the icon from 500x476 to 512x512. Thanks to Arch.
convert gui/images/appicon.png +set date:create +set date:modify -background none -gravity center -extent 512x512 gui/images/appicon.png
-./configure \
- --prefix=/usr \
- --libdir=/usr/lib${LIBDIRSUFFIX} \
- --sysconfdir=/etc \
- --localstatedir=/var \
- --mandir=/usr/man \
- --infodir=/usr/info \
- --docdir=/usr/doc/$PRGNAM-$VERSION \
- --with-zlib=system \
- --build=$ARCH-slackware-linux \
- CFLAGS="$SLKCFLAGS" \
- CXXFLAGS="$SLKCFLAGS" \
+qmake-qt5 \
+ WITH_LIBUSB=pkgconfig \
+ WITH_ZLIB=pkgconfig \
+ QMAKE_CFLAGS_RELEASE="$SLKCFLAGS" \
+ QMAKE_CXXFLAGS_RELEASE="$SLKCFLAGS" \
make
make gui
@@ -118,9 +103,6 @@ install -D -m0755 -s gpsbabel $PKG/usr/bin/gpsbabel
install -D -m0755 -s gui/objects/gpsbabelfe $PKG/usr/bin/gpsbabelfe
install -D -m0644 gui/gpsbabel.desktop $PKG/usr/share/applications/gpsbabel.desktop
install -D -m0644 gui/images/appicon.png $PKG/usr/share/icons/hicolor/512x512/apps/gpsbabel.png
-install -D -m0644 gui/gmapbase.html $PKG/usr/share/gpsbabel/gmapbase.html
-install -d -m0755 $PKG/usr/share/gpsbabel/translations/
-install -D -m0644 gui/*.qm $PKG/usr/share/gpsbabel/translations/
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION