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

67 lines
1.9 KiB
Bash
Raw 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
2023-08-30 02:33:09 +02:00
STATIC_PACKAGES="libfftw3-single3 libprotobuf32 libsamplerate0 libicu72 libudev1"
2022-01-24 11:38:06 +01:00
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-11-30 01:15:28 +01:00
# latest develop as of 2022-11-30 (structured callsign data)
git checkout f7e394b7892d26cbdcce5d43c0b4081a2a6a48f6
python3 setup.py install
popd
rm -rf js8py
git clone https://github.com/jketterl/csdr.git
2023-09-08 15:54:22 +02:00
# latest develop as of 2023-09-08 (various specializations)
cmakebuild csdr 93dc0fa0c6b1a57ea72579828f47c97cf1682c06
2021-09-22 18:15:47 +02:00
git clone https://github.com/jketterl/pycsdr.git
cd pycsdr
2023-09-08 15:54:22 +02:00
# latest develop as of 2023-08-21 (various specializations))
git checkout 37bb90174c23567ac419b45804f2d0cc5bb6a883
2021-09-22 18:15:47 +02:00
./setup.py install install_headers
cd ..
2021-09-22 18:15:47 +02: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
2023-07-04 01:16:43 +02:00
# latest develop as of 2023-07-03 (error handling)
cmakebuild codecserver 0f3703ce285acd85fcd28f6620d7795dc173cb50
git clone https://github.com/jketterl/digiham.git
2023-07-04 01:16:43 +02:00
# latest develop as of 2023-07-02 (codecserver protocol version)
cmakebuild digiham 262e6dfd9a2c56778bd4b597240756ad0fb9861d
2021-09-22 18:15:47 +02:00
git clone https://github.com/jketterl/pydigiham.git
cd pydigiham
2023-07-01 08:28:39 +02:00
# latest develop as of 2023-06-30 (csdr cleanup)
git checkout 894aa87ea9a3534d1e7109da86194c7cd5e0b7c7
2021-09-22 18:15:47 +02:00
./setup.py install
cd ..
rm -rf pydigiham
apt-get -y purge --autoremove $BUILD_PACKAGES
apt-get clean
rm -rf /var/lib/apt/lists/*