Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ham/sdrangel: Update script. #9509

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion ham/sdrangel/README
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
SDR Rx/Tx software for Airspy, Airspy HF+, BladeRF, HackRF, LimeSDR,
PlutoSDR, RTL-SDR, SDRplay RSP1 and FunCube
PlutoSDR, RTL-SDR, SDRplay and FunCube

This software project is committed to Open Source that is you as a
visitor, collaborator, simple user... will always be guaranteed access
Expand Down Expand Up @@ -36,3 +36,5 @@ SDRplay, libperseus, librtlsdr, uhd ...
Optional features can be enabled installing:
aptdec, cm256cc, dab_lib, mbelib, serialDV, dsdcc, sgp4, libsigmf,
ggmorse

SERVER=yes|no (Default is no) to compile also the server variant
14 changes: 6 additions & 8 deletions ham/sdrangel/sdrangel.SlackBuild
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd)

PRGNAM=sdrangel
VERSION=${VERSION:-7.22.5}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}

Expand Down Expand Up @@ -81,13 +81,10 @@ 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 {} \;

# Fix (ver 3.14 Added RSP1B Support)
sed 's/case SDRPLAY_RSP1B_ID/case (6)/' -i plugins/samplesource/sdrplayv3/sdrplayv3input.cpp
sed 's/case SDRPLAY_RSP1B_ID/case (6)/' -i plugins/samplesource/sdrplayv3/sdrplayv3gui.cpp

# Fix (ver 3.15 Added RSPdxR2 Support)
sed 's/case SDRPLAY_RSPdxR2_ID/case (7)/' -i plugins/samplesource/sdrplayv3/sdrplayv3input.cpp
sed 's/case SDRPLAY_RSPdxR2_ID/case (7)/' -i plugins/samplesource/sdrplayv3/sdrplayv3gui.cpp
# Compile also the server variant
if [ "${SERVER:-no}" == "no" ]; then
OPT="-DBUILD_SERVER=OFF"
fi

mkdir -p build
cd build
Expand All @@ -98,6 +95,7 @@ cd build
-DLIB_SUFFIX=${LIBDIRSUFFIX} \
-DCMAKE_INSTALL_MANDIR=/usr/man \
-DCMAKE_INSTALL_DOCDIR=/usr/doc/$PRGNAM-$VERSION \
$OPT \
-DCMAKE_BUILD_TYPE=Release ..
make install/strip DESTDIR=$PKG
cd ..
Expand Down
2 changes: 1 addition & 1 deletion ham/sdrangel/slack-desc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
sdrangel: sdrangel (TX & RX Software Defined Radio)
sdrangel:
sdrangel: SDRangel: SDR Rx/Tx software for Airspy, Airspy HF+, BladeRF, HackRF,
sdrangel: LimeSDR, PlutoSDR, RTL-SDR, SDRplay RSP1 and FunCube
sdrangel: LimeSDR, PlutoSDR, RTL-SDR, SDRplay and FunCube
sdrangel:
sdrangel:
sdrangel:
Expand Down