openwebrx-clone/docker/scripts/install-owrx-tools.sh

61 lines
1.4 KiB
Bash
Raw Permalink Normal View History

#!/bin/bash
set -euxo pipefail
export MAKEFLAGS="-j4"
function cmakebuild() {
cd $1
if [[ ! -z "${2:-}" ]]; then
git checkout $2
fi
mkdir build
cd build
cmake ${CMAKE_ARGS:-} ..
make
make install
cd ../..
rm -rf $1
}
cd /tmp
2022-01-24 10:38:06 +00:00
STATIC_PACKAGES="libfftw3-bin libprotobuf23 libsamplerate0 libicu67 libudev1"
BUILD_PACKAGES="git autoconf automake libtool libfftw3-dev pkg-config cmake make gcc g++ libprotobuf-dev protobuf-compiler libsamplerate-dev libicu-dev libpython3-dev libudev-dev"
apt-get update
apt-get -y install --no-install-recommends $STATIC_PACKAGES $BUILD_PACKAGES
git clone https://github.com/jketterl/js8py.git
pushd js8py
2022-06-16 20:48:57 +00:00
git checkout 0.1.2
python3 setup.py install
popd
rm -rf js8py
git clone https://github.com/jketterl/csdr.git
2022-09-20 16:51:09 +00:00
cmakebuild csdr 0.18.1
2021-09-22 16:15:47 +00:00
git clone https://github.com/jketterl/pycsdr.git
cd pycsdr
2022-09-20 16:51:09 +00:00
git checkout 0.18.1
2021-09-22 16:15:47 +00:00
./setup.py install install_headers
cd ..
2021-09-22 16:15:47 +00:00
rm -rf pycsdr
git clone https://github.com/jketterl/codecserver.git
mkdir -p /usr/local/etc/codecserver
cp codecserver/conf/codecserver.conf /usr/local/etc/codecserver
2022-06-16 20:48:57 +00:00
cmakebuild codecserver 0.2.0
git clone https://github.com/jketterl/digiham.git
2022-06-16 20:48:57 +00:00
cmakebuild digiham 0.6.0
2021-09-22 16:15:47 +00:00
git clone https://github.com/jketterl/pydigiham.git
cd pydigiham
2022-06-16 20:48:57 +00:00
git checkout 0.6.0
2021-09-22 16:15:47 +00:00
./setup.py install
cd ..
rm -rf pydigiham
apt-get -y purge --autoremove $BUILD_PACKAGES
apt-get clean
rm -rf /var/lib/apt/lists/*