aboutsummaryrefslogtreecommitdiff
path: root/gis
diff options
context:
space:
mode:
authorKyle Guinn <elyk03@gmail.com>2022-03-27 21:18:39 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-04-02 18:18:40 +0700
commit561f13abc0e0db625e1b1ee5941f0d7f070504e3 (patch)
tree7de171027d9059cb2169312a68a93b18e89730c1 /gis
parentf843bcc8d81d04852e37931f5b976af95066ee2d (diff)
gis/gpsbabel: Updated for version 1.8.0
Signed-off-by: Kyle Guinn <elyk03@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'gis')
-rw-r--r--gis/gpsbabel/gpsbabel.SlackBuild32
-rw-r--r--gis/gpsbabel/gpsbabel.info8
2 files changed, 11 insertions, 29 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
diff --git a/gis/gpsbabel/gpsbabel.info b/gis/gpsbabel/gpsbabel.info
index aeb84952271d..6b03daff1d64 100644
--- a/gis/gpsbabel/gpsbabel.info
+++ b/gis/gpsbabel/gpsbabel.info
@@ -1,10 +1,10 @@
PRGNAM="gpsbabel"
-VERSION="1.7.0"
+VERSION="1.8.0"
HOMEPAGE="https://www.gpsbabel.org/"
-DOWNLOAD="https://github.com/gpsbabel/gpsbabel/archive/gpsbabel_1_7_0/gpsbabel-gpsbabel_1_7_0.tar.gz"
-MD5SUM="80a7d3455c741e1298b2fbce93bb6072"
+DOWNLOAD="https://github.com/gpsbabel/gpsbabel/archive/gpsbabel_1_8_0/gpsbabel-gpsbabel_1_8_0.tar.gz"
+MD5SUM="00d09b95a05d85622d38de5b0963e2bc"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="libminizip"
+REQUIRES=""
MAINTAINER="Kyle Guinn"
EMAIL="elyk03@gmail.com"