mirror of
https://github.com/thetechprepper/emcomm-tools-os-community.git
synced 2026-09-17 15:41:44 -04:00
Attempt to fix the VOACAP installation script.
This commit is contained in:
+26
-14
@@ -1,8 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Author : Gaston Gonzalez
|
# Author : Gaston Gonzalez
|
||||||
# Date : 5 June 2023
|
# Date : 5 June 2023
|
||||||
# Updated : 16 August 2025
|
# Updated : 2 September 2025
|
||||||
# Purpose : Install Dire Wolf
|
# Purpose : Install voacapl
|
||||||
#
|
#
|
||||||
# References:
|
# References:
|
||||||
# 1. https://github.com/jawatson/voacapl
|
# 1. https://github.com/jawatson/voacapl
|
||||||
@@ -13,32 +13,44 @@ trap 'last_command=$current_command; current_command=$BASH_COMMAND' DEBUG
|
|||||||
trap 'et-log "\"${last_command}\" command failed with exit code $?."' ERR
|
trap 'et-log "\"${last_command}\" command failed with exit code $?."' ERR
|
||||||
|
|
||||||
. ./env.sh
|
. ./env.sh
|
||||||
|
. ../overlay/opt/emcomm-tools/bin/et-common
|
||||||
|
|
||||||
APP=voacapl
|
APP=voacapl
|
||||||
VERSION=0.7.6
|
VERSION=0.7.6
|
||||||
REPO=https://github.com/thetechprepper/voacapl
|
DOWNLOAD_FILE=voacapl-master.zip
|
||||||
REPO_SRC_DIR="/opt/src/${APP}"
|
|
||||||
INSTALL_DIR="/opt/${APP}-${VERSION}"
|
INSTALL_DIR="/opt/${APP}-${VERSION}"
|
||||||
LINK_PATH="/opt/${APP}"
|
LINK_PATH="/opt/${APP}"
|
||||||
|
|
||||||
et-log "Installing voacapl build dependencies..."
|
et-log "Installing voacapl build dependencies..."
|
||||||
apt install gfortran -y
|
apt install gfortran -y
|
||||||
|
|
||||||
[[ ! -e ${ET_SRC_DIR} ]] && mkdir ${ET_SRC_DIR}
|
if [[ ! -e ${ET_DIST_DIR}/${DOWNLOAD_FILE} ]]; then
|
||||||
|
|
||||||
|
URL="https://github.com/thetechprepper/voacapl/archive/refs/heads/master.zip"
|
||||||
|
|
||||||
|
et-log "Downloading ${APP}: ${URL}"
|
||||||
|
download_with_retries ${URL} ${DOWNLOAD_FILE}
|
||||||
|
|
||||||
|
mv -v ${DOWNLOAD_FILE} ${ET_DIST_DIR}
|
||||||
|
fi
|
||||||
|
|
||||||
CWD_DIR=`pwd`
|
CWD_DIR=`pwd`
|
||||||
|
|
||||||
if [[ ! -e ${REPO_SRC_DIR} ]]; then
|
# Only build once
|
||||||
cd ${ET_SRC_DIR} && git clone ${REPO}
|
if [[ ! -e "${ET_SRC_DIR}/${APP}/${BIN_FILE}" ]]; then
|
||||||
|
cd ${ET_SRC_DIR}
|
||||||
|
unzip -o ${ET_DIST_DIR}/${DOWNLOAD_FILE}
|
||||||
|
|
||||||
|
cd voacapl-master
|
||||||
|
|
||||||
|
et-log "Building ${APP}.."
|
||||||
|
./configure --prefix=${INSTALL_DIR}
|
||||||
|
make && make install
|
||||||
|
|
||||||
|
# patch prefix location
|
||||||
|
sed -i 's|__PREFIX__|/opt/voacapl-0.7.6|' makeitshfbc
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd ${REPO_SRC_DIR}
|
|
||||||
./configure --prefix=${INSTALL_DIR}
|
|
||||||
make && make install
|
|
||||||
|
|
||||||
# patch prefix location
|
|
||||||
sed -i 's|__PREFIX__|/opt/voacapl-0.7.6|' makeitshfbc
|
|
||||||
|
|
||||||
[[ -e /root/itshfbc ]] && rm -rf /root/itshfbc
|
[[ -e /root/itshfbc ]] && rm -rf /root/itshfbc
|
||||||
[[ -e /etc/skel/itshfbc ]] && rm -rf /etc/skel/itshfbc
|
[[ -e /etc/skel/itshfbc ]] && rm -rf /etc/skel/itshfbc
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user