adding hamlib 4.5.5 option

This commit is contained in:
tb14
2025-01-08 16:49:58 -06:00
parent fc2b5865f1
commit da77149544
+92
View File
@@ -744,6 +744,52 @@ fi
}
function hamlib4.5.5_install() {
if [[ $NEWHAMLIB == "SERVER DOWN" ]]; then
echo "HAMLIB server unresponsive or broken link." >> /tmp/failures
return
fi
if [[ ${HAMLIB} == 4.5.5 ]]; then
echo "HAMLIB is already at the most current version"
else
# tcl8.5-dev libsigc++-1.2-dev, Trying libsigc++-2.0-dev tcl8.6-dev
##This was Debian 10 based.
##sudo apt-get install -y cmake build-essential libusb-1.0-0.dev libltdl-dev libusb-1.0-0 libhamlib-utils libsamplerate0 libsamplerate0-dev libsigx-2.0-dev libsigc++-2.0-dev libpopt-dev tcl8.6-dev libspeex-dev libasound2-dev alsa-utils libgcrypt20-dev libpopt-dev libfltk1.3-dev libpng++-dev portaudio19-dev libpulse-dev libportaudiocpp0 libsndfile1-dev ||
#This seems to be all thats needed for Debian 11 based
sudo apt-get install -y libusb-1.0-0.dev libusb-1.0-0 g++ ||
{ ERRCODE="Failed to build dependencies for Hamlib"; errors; return; }
cd $USERDIR && wget -N https://github.com/Hamlib/Hamlib/releases/download/4.5.5/hamlib-4.5.5.tar.gz ||
{ ERRCODE="Failed to download Hamlib $NEWHAMLIB"; errors; return; }
tar -xvzf hamlib-4.5.5.tar.gz && rm hamlib-4.5.5.tar.gz && cd hamlib-4.5.5 ||
{ ERRCODE="Failed to extract Hamlib $NEWHAMLIB"; errors; return; }
./configure && make && sudo make install ||
{ ERRCODE="Failed to compile Hamlib $NEWHAMLIB"; errors; return; }
sudo ldconfig ||
{ ERRCODE="ldconfig failed"; errors; return; }
#Cleanup space from compiling
#if hash rigctld 2>/dev/null; then
# sudo rm -r $USERDIR/hamlib-${NEWHAMLIB}
#fi
fi
}
function fldigi_install() {
if [[ $NEWFLDIGI == "SERVER DOWN" ]]; then
echo "FLDIGI server unresponsive or broken link." >> /tmp/failures
@@ -1831,6 +1877,47 @@ fi
}
#function js8call_install() {
#
#if [[ $NEWJS8CALLVER == "SERVER DOWN" ]]; then
# echo "JS8Call server unresponsive or broken link." >> /tmp/failures
# return
#fi
#if [[ ${JS8CALLVER} == ${NEWJS8CALLVER} ]]; then
# echo "JS8Call is already at the most current version"
#
# elif [[ ${JS8CALLVER} == "2.2.1-devel" ]] && [[ ${NEWJS8CALLVER} == "2.2.0" ]]; then
# echo "JS8Call is already at the most current version"
#
# else
# sudo apt-get install -y build-essential gfortran autoconf automake libtool cmake git asciidoctor libfftw3-dev qtdeclarative5-dev texinfo libqt5multimedia5 libqt5multimedia5-plugins qtmultimedia5-dev libusb-1.0.0-dev libqt5serialport5-dev asciidoc libudev-dev
# JS8PKG=$(curl -s http://files.js8call.com/latest.html | grep .tgz | sed 's/.*js8call-/js8call-/;s/<.*$//')
# JS8VERSION=$(echo $JS8PKG | sed 's/js8call-//;s/.tgz.*$//')
# wget -P $USERDIR/ -N http://files.js8call.com/$JS8VERSION/$JS8PKG ||
# { ERRCODE="Failed to download JS8Call"; errors; return; }
# cd $USERDIR && tar -xvf $USERDIR/$JS8PKG && rm $USERDIR/$JS8PKG ||
# { ERRCODE="Unable to extract JS8call Source Code"; errors; return; }
# cd $USERDIR/js8call
# cmake . && cmake --build . -- -j4 && sudo make install ||
# { ERRCODE="Failed to build JS8Call."; errors; return; }
#Cleanup space from compiling
#if hash js8call 2>/dev/null; then
# sudo rm -r $USERDIR/js8call
#fi
#fi
#}
function js8call_install() {
if [[ $NEWJS8CALLVER == "SERVER DOWN" ]]; then
@@ -3395,6 +3482,8 @@ yad --image=$DIR/images/corps-icon.png --center --checklist --print-column=2 --s
--column="Tick" --column="Program" --column="Description" \
--column="Installed version" --column="Updated Version" \
false "HAMLIB" "Hamlib libraries provide rig control for your radio" \
"${HAMLIB}" "${NEWHAMLIB}" \
false "HAMLIB4.5.5" "Hamlib 4.5.5 libraries provide rig control for your radio" \
"${HAMLIB}" "${NEWHAMLIB}" \
false "FLDIGI" "FLDIGI Radio Program" "${FLDIGI}" "${NEWFLDIGI}" \
false "FLMSG" "FLMSG Radio Program" "${FLMSG}" "${NEWFLMSG}" \
@@ -4058,6 +4147,9 @@ cat /tmp/results | yad --text-info --center \
HAMLIB) echo "Updating HAMLIB"
hamlib_install
;;
HAMLIB4.5.5) echo "Installing Hamlib 4.5.5"
hamlib4.5.5_install
;;
FLDIGI) echo "Installing / Updating FLDIGI"
fldigi_install
;;