summaryrefslogtreecommitdiffstats
path: root/ham/qt-dab/qt-dab.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'ham/qt-dab/qt-dab.SlackBuild')
-rw-r--r--ham/qt-dab/qt-dab.SlackBuild36
1 files changed, 21 insertions, 15 deletions
diff --git a/ham/qt-dab/qt-dab.SlackBuild b/ham/qt-dab/qt-dab.SlackBuild
index 0a17e2824e..76af86f1e0 100644
--- a/ham/qt-dab/qt-dab.SlackBuild
+++ b/ham/qt-dab/qt-dab.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for qt-dab
-# Copyright 2022 J sbo-qt-dab@jnet-productions.co.uk
+# Copyright 2023 J sbo-qt-dab@jnet-productions.co.uk
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,7 +25,8 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=qt-dab
-VERSION=${VERSION:-4.4}
+VERSION=${VERSION:-5.4}
+TARVERSION=6
BUILD=${BUILD:-0}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -38,6 +39,11 @@ if [ -z "$ARCH" ]; then
esac
fi
+# Don't use portaudio, use QT built in audio? [Requires patching source atm]
+if [ "${QTAUDIO:-no}" == "yes" ]; then
+ QT_OPTION="-DQT_AUDIO=ON"
+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.
@@ -69,10 +75,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$VERSION.tar.gz || tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
-cd $PRGNAM-$VERSION || cd $PRGNAM-$PRGNAM-$VERSION
-# Seems that the latest version folder is now name-name-version
+rm -rf $PRGNAM-$PRGNAM-$TARVERSION
+tar xvf $CWD/$PRGNAM-$PRGNAM-$TARVERSION.tar.gz
+cd $PRGNAM-$PRGNAM-$TARVERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -80,7 +85,7 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-# Build only the full "maxi" application
+# Build only the full application
mkdir -p build
cd build
cmake \
@@ -88,24 +93,25 @@ cd build
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DLIB_SUFFIX=${LIBDIRSUFFIX} \
- -DRTLSDR=ON \
+ -DRTLSDR_LINUX=ON \
-DRTL_TCP=ON \
-DFDK_AAC=ON \
- -DCMAKE_BUILD_TYPE=Release ../dab-maxi
+ $QT_OPTION \
+ -DCMAKE_BUILD_TYPE=Release ../qt-dab-s5
make
make install/strip DESTDIR=$PKG
cd ..
# Put the binary in the right folder, strip suffix.
mkdir $PKG/usr/bin
-mv $PKG/usr/$PRGNAM-$VERSION $PKG/usr/bin/$PRGNAM
+mv $PKG/usr/$PRGNAM-$VERSION $PKG/usr/bin/$PRGNAM-5
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/doc/$PRGNAM-$VERSION
cp -a \
- docs/manual.pdf \
+ docs/manual-5.pdf \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
@@ -115,13 +121,13 @@ cat $CWD/doinst.sh > $PKG/install/doinst.sh
mkdir -p $PKG/usr/share/applications
mkdir -p $PKG/usr/share/pixmaps
-chmod 0644 dab-maxi/qt-dab.desktop
-chmod 0644 dab-maxi/qt-dab.png
+chmod 0644 qt-dab-s5/qt-dab-5.desktop
+chmod 0644 qt-dab-s5/qt-dab-5.png
cp -a \
- dab-maxi/qt-dab.desktop \
+ qt-dab-s5/qt-dab-5.desktop \
$PKG/usr/share/applications
cp -a \
- dab-maxi/qt-dab.png \
+ qt-dab-s5/qt-dab-5.png \
$PKG/usr/share/pixmaps
cd $PKG