2020-09-01 21:30:48 +00:00
|
|
|
#!/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
|
|
|
|
|
2021-05-31 16:40:45 +00:00
|
|
|
STATIC_PACKAGES="libfftw3-bin libprotobuf17"
|
|
|
|
BUILD_PACKAGES="git autoconf automake libtool libfftw3-dev pkg-config cmake make gcc g++ libprotobuf-dev protobuf-compiler"
|
2020-09-01 21:30:48 +00:00
|
|
|
apt-get update
|
|
|
|
apt-get -y install --no-install-recommends $STATIC_PACKAGES $BUILD_PACKAGES
|
|
|
|
|
|
|
|
git clone https://github.com/jketterl/js8py.git
|
|
|
|
pushd js8py
|
2020-10-04 19:02:46 +00:00
|
|
|
git checkout 0.1.0
|
2020-09-01 21:30:48 +00:00
|
|
|
python3 setup.py install
|
|
|
|
popd
|
|
|
|
rm -rf js8py
|
|
|
|
|
|
|
|
git clone https://github.com/jketterl/csdr.git
|
|
|
|
cd csdr
|
2020-10-11 13:03:39 +00:00
|
|
|
git checkout 0.17.0
|
2020-09-01 21:30:48 +00:00
|
|
|
autoreconf -i
|
|
|
|
./configure
|
|
|
|
make
|
|
|
|
make install
|
|
|
|
cd ..
|
|
|
|
rm -rf csdr
|
|
|
|
|
2021-05-31 16:40:45 +00:00
|
|
|
git clone https://github.com/jketterl/codecserver.git
|
|
|
|
mkdir -p /usr/local/etc/codecserver
|
|
|
|
cp codecserver/conf/codecserver.conf /usr/local/etc/codecserver
|
2021-07-04 14:13:45 +00:00
|
|
|
#latest develop as of 2021-07-04 (optional checksum fix)
|
|
|
|
cmakebuild codecserver d73c9a56a773355679bc2d4a10f199b62223d7a0
|
2021-05-31 16:40:45 +00:00
|
|
|
|
2020-09-01 21:30:48 +00:00
|
|
|
git clone https://github.com/jketterl/digiham.git
|
2021-06-17 13:01:10 +00:00
|
|
|
#latest develop as of 2021-06-15 (DMR LCSS overflow fix; D-Star alternate terminator)
|
|
|
|
cmakebuild digiham 418145d74b528596a39198a537ab56207d932595
|
2020-09-01 21:30:48 +00:00
|
|
|
|
|
|
|
apt-get -y purge --autoremove $BUILD_PACKAGES
|
|
|
|
apt-get clean
|
|
|
|
rm -rf /var/lib/apt/lists/*
|