openwebrx/docker/scripts/install-connectors.sh

34 lines
721 B
Bash
Raw Normal View History

2019-11-18 14:15:59 +01:00
#!/usr/bin/env bash
set -euxo pipefail
2020-02-16 12:19:49 +01:00
export MAKEFLAGS="-j4"
2019-11-18 14:15:59 +01:00
function cmakebuild() {
cd $1
if [[ ! -z "${2:-}" ]]; then
git checkout $2
fi
2019-11-18 14:15:59 +01:00
mkdir build
cd build
cmake ..
make
make install
cd ../..
rm -rf $1
}
cd /tmp
2023-08-30 02:33:09 +02:00
STATIC_PACKAGES="libfftw3-single3"
2021-11-02 16:11:19 +01:00
BUILD_PACKAGES="git cmake make gcc g++ libsamplerate-dev libfftw3-dev"
2019-11-18 14:15:59 +01:00
2020-05-23 19:59:31 +02:00
apt-get update
2023-08-04 16:44:23 +02:00
apt-get -y install --no-install-recommends $STATIC_PACKAGES $BUILD_PACKAGES
2019-11-18 14:15:59 +01:00
git clone https://github.com/jketterl/owrx_connector.git
2024-01-01 20:31:40 +01:00
# latest develop as of 2024-01-01 (fixed startup race condition)
cmakebuild owrx_connector 62219d40e180abb539ad61fcd9625b90c34f0e26
2019-11-18 14:15:59 +01:00
2020-05-23 19:59:31 +02:00
apt-get -y purge --autoremove $BUILD_PACKAGES
apt-get clean
rm -rf /var/lib/apt/lists/*