From 60322a23435ea3366a35f5eeda25bfab9a77d481 Mon Sep 17 00:00:00 2001 From: tangobravo14 Date: Wed, 17 May 2023 14:54:15 +0300 Subject: [PATCH] voacap testing --- AmRRON-Setup-Script.sh | 53 +++++++++++++++++++++++++++++++++++++----- 1 file changed, 47 insertions(+), 6 deletions(-) diff --git a/AmRRON-Setup-Script.sh b/AmRRON-Setup-Script.sh index bda5144..c72fc55 100755 --- a/AmRRON-Setup-Script.sh +++ b/AmRRON-Setup-Script.sh @@ -1363,22 +1363,21 @@ sudo apt-get -y install pulseaudio pavucontrol pulseaudio-utils || } -function voacap_install() { +function voacap_install_old() { -if apt-cache show gnome-doc-utils &>/dev/null; then - + if apt-cache show gnome-doc-utils &>/dev/null; then sudo apt-get -y install gfortran || { ERRCODE="Failed to get gfortran dependency for VOACAPL"; errors; return; } - cd $USERDIR && wget -N www.qsl.net/hz1jw/voacapl/downloads/voacapl-0.7.2.tar.gz || + cd $USERDIR && wget -N https://github.com/jawatson/voacapl/archive/refs/tags/v.0.7.6.tar.gz || { ERRCODE="Failed to download VOACAPL"; errors; return; } - tar -xzf voacapl-0.7.2.tar.gz && rm voacapl-0.7.2.tar.gz && cd voacapl-0.7.2 || + tar -xzf voacapl-0.7.6.tar.gz && rm voacapl-0.7.6.tar.gz && cd voacapl-0.7.6 || { ERRCODE="Failed to extract VOACAPL"; errors; return; } - ./configure && make && sudo make install || + ./configure && make -j4 && sudo make install || { ERRCODE="Failed to compile VOACAPL"; errors; return; } @@ -1408,6 +1407,48 @@ else fi } +function voacap_install() { + + + + sudo apt-get -y install gfortran || + { ERRCODE="Failed to get gfortran dependency for VOACAPL"; errors; return; } + + cd $USERDIR && wget -N https://github.com/jawatson/voacapl/archive/refs/tags/v.0.7.6.tar.gz || + { ERRCODE="Failed to download VOACAPL"; errors; return; } + + tar -xzf voacapl-0.7.6.tar.gz && rm voacapl-0.7.6.tar.gz && cd voacapl-0.7.6 || + { ERRCODE="Failed to extract VOACAPL"; errors; return; } + + + ./configure && make -j4 && sudo make install || + { ERRCODE="Failed to compile VOACAPL"; errors; return; } + + + makeitshfbc || + { ERRCODE="VOACAPL makeitshfbc failed"; errors; return; } + + ssudo apt-get -y install build-essential python3-matplotlib python3-cartopy python3-scipy || + { ERRCODE="Failed to get dependencies for VOACAPL pythonprop GUI"; errors; return; } + + cd $USERDIR && wget -N https://github.com/jawatson/pythonprop/archive/refs/tags/v0.30.1.tar.gz || + { ERRCODE="Failed to download VOACAPL pythonprop GUI"; errors; return; } + + + tar -xzf pythonprop-0.30.1.tar.gz && rm pythonprop-0.30.1tar.gz && cd pythonprop-0.30.1 || + { ERRCODE="Failed to extract VOACAPL pythonprop GUI"; errors; return; } + + + ./configure && sudo make install || + { ERRCODE="Failed to compile VOACAPL pythonprop GUI"; errors; return; } + +#else + + # { echo voacap_os >> /tmp/cleanup; } && { ERRCODE="VOACAP GUI is not supported on your OS."; errors; return; } + + +#fi +} #function old_chirp_install() { #if [[ $NEWCHIRP == "SERVER DOWN" ]]; then # echo "CHIRP server unresponsive or broken link." >> /tmp/failures