From 561f13abc0e0db625e1b1ee5941f0d7f070504e3 Mon Sep 17 00:00:00 2001 From: Kyle Guinn Date: Sun, 27 Mar 2022 21:18:39 -0500 Subject: gis/gpsbabel: Updated for version 1.8.0 Signed-off-by: Kyle Guinn Signed-off-by: Willy Sudiarto Raharjo --- gis/gpsbabel/gpsbabel.SlackBuild | 32 +++++++------------------------- gis/gpsbabel/gpsbabel.info | 8 ++++---- 2 files changed, 11 insertions(+), 29 deletions(-) diff --git a/gis/gpsbabel/gpsbabel.SlackBuild b/gis/gpsbabel/gpsbabel.SlackBuild index c960dc6885..3587d93bbd 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 +# Copyright 2017-2022 Kyle Guinn # 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 aeb8495227..6b03daff1d 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" -- cgit v1.2.3