summaryrefslogtreecommitdiffstats
path: root/ham/klog
diff options
context:
space:
mode:
Diffstat (limited to 'ham/klog')
-rw-r--r--ham/klog/README3
-rw-r--r--ham/klog/klog.SlackBuild46
-rw-r--r--ham/klog/klog.info8
-rw-r--r--ham/klog/slack-desc8
4 files changed, 37 insertions, 28 deletions
diff --git a/ham/klog/README b/ham/klog/README
index 5e2a4964f9..1f32f42236 100644
--- a/ham/klog/README
+++ b/ham/klog/README
@@ -1 +1,2 @@
-KLog is a Ham radio logging program for Linux / KDE.
+KLog is a multiplatform ham radio logging program using the QT5
+framework. It supports integration with WSJT-X and hamlib.
diff --git a/ham/klog/klog.SlackBuild b/ham/klog/klog.SlackBuild
index 901b97ae0c..ed669217a9 100644
--- a/ham/klog/klog.SlackBuild
+++ b/ham/klog/klog.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackbuild for klog
# Written by JK Wood <joshuakwood@gmail.com>
@@ -20,10 +20,13 @@
# see fit. Or as I see fit. Or as I fit. Although
# that is unlikely, as I am rather tall.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=klog
-VERSION=${VERSION:-0.9.1.1}
+VERSION=${VERSION:-1.8.7}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -33,7 +36,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}
@@ -58,7 +68,11 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar -xvf $CWD/$PRGNAM-$VERSION.tar.gz
+TARBALL="$CWD/$VERSION.tar.gz"
+if [ ! -e "$TARBALL" ] ; then
+ TARBALL="$CWD/$PRGNAM-$VERSION.tar.gz"
+fi
+tar -xvf $TARBALL
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@@ -69,25 +83,19 @@ find -L . \
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
-qmake PREFIX=/usr klog.pro
+qmake-qt5 PREFIX=$PKG/usr KLog.pro
make
+make install DESTDIR=$PKG
-# Somewhere after 0.6.2 the developers
-# broke the install target. We'll do
-# it live!
-
-mkdir -p $PKG/usr/bin
-install -m 755 klog $PKG/usr/bin/
+# this seems purposeless
+rm -r $PKG/usr/share/klog
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/man/man1
-cat klog.1 > $PKG/usr/man/man1/klog.1
-
-find $PKG/usr/man -type f -exec gzip -9 {} \;
-for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+gzip -9c src/klog.1 > $PKG/usr/man/man1/klog.1.gz
mkdir -p $PKG/usr/share/applications
cat $CWD/klog.desktop > $PKG/usr/share/applications/klog.desktop
@@ -98,15 +106,15 @@ cat $CWD/klog16x16.png > $PKG/usr/share/icons/locolor/16x16/apps/klog.png
cat $CWD/klog32x32.png > $PKG/usr/share/icons/locolor/32x32/apps/klog.png
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a AUTHORS COPYING Changelog INSTALL.txt INSTALL-linux NEWS README TODO \
+for doc in AUTHORS COPYING Changelog NEWS README TODO; do
+ cp -a "src/$doc" \
$PKG/usr/doc/$PRGNAM-$VERSION
+done
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-find $PKG/usr/doc -name "Makefile" -exec rm {} \;
-find $PKG/usr/doc -type f -exec chmod 644 {} \;
mkdir -p $PKG/install
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
diff --git a/ham/klog/klog.info b/ham/klog/klog.info
index 88486424b7..1e634dbbea 100644
--- a/ham/klog/klog.info
+++ b/ham/klog/klog.info
@@ -1,8 +1,8 @@
PRGNAM="klog"
-VERSION="0.9.1.1"
-HOMEPAGE="https://jaime.robles.es/klog/"
-DOWNLOAD="http://nongnu.askapache.com/klog/klog-0.9.1.1.tar.gz"
-MD5SUM="7ab84fe3aba8ce6792a602262adadc6a"
+VERSION="1.8.7"
+HOMEPAGE="https://www.klog.xyz"
+DOWNLOAD="https://github.com/ea4k/klog/archive/refs/tags/1.8.7.tar.gz"
+MD5SUM="d53301013b596d9fc07daf52749b974d"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="hamlib"
diff --git a/ham/klog/slack-desc b/ham/klog/slack-desc
index 42db972cff..12aa8a43d7 100644
--- a/ham/klog/slack-desc
+++ b/ham/klog/slack-desc
@@ -8,12 +8,12 @@
|-----handy-ruler------------------------------------------------------|
klog: klog (Ham Radio Logging program for KDE)
klog:
-klog: klog is an amateur radio logging program for KDE.
+klog: klog is a multiplatform amateur radio logging program using the QT5
+klog: framework. KLog provides QSO management, DX-Cluster integration,
+klog: and support for WSTJ-X, among other things.
klog:
klog:
klog:
klog:
-klog:
-klog:
-klog: Homepage: https://jaime.robles.es/klog/
+klog: Homepage: https://www.klog.xyz
klog: