2019-01-13 14:12:09 +00:00
|
|
|
#!/bin/bash
|
2019-01-13 15:54:36 +00:00
|
|
|
set -euxo pipefail
|
2020-02-16 11:19:49 +00:00
|
|
|
export MAKEFLAGS="-j4"
|
2019-01-13 14:12:09 +00:00
|
|
|
|
2019-01-13 21:04:29 +00:00
|
|
|
function cmakebuild() {
|
|
|
|
cd $1
|
2019-12-29 23:11:27 +00:00
|
|
|
if [[ ! -z "${2:-}" ]]; then
|
|
|
|
git checkout $2
|
|
|
|
fi
|
2019-01-13 21:04:29 +00:00
|
|
|
mkdir build
|
|
|
|
cd build
|
|
|
|
cmake ..
|
2019-01-22 10:35:48 +00:00
|
|
|
make
|
|
|
|
make install
|
2019-01-13 21:04:29 +00:00
|
|
|
cd ../..
|
|
|
|
rm -rf $1
|
|
|
|
}
|
|
|
|
|
2019-01-13 14:12:09 +00:00
|
|
|
cd /tmp
|
|
|
|
|
2019-08-23 20:21:30 +00:00
|
|
|
STATIC_PACKAGES="sox fftw python3 netcat-openbsd libsndfile lapack libusb qt5-qtbase qt5-qtmultimedia qt5-qtserialport qt5-qttools alsa-lib"
|
|
|
|
BUILD_PACKAGES="git libsndfile-dev fftw-dev cmake ca-certificates make gcc musl-dev g++ lapack-dev linux-headers autoconf automake libtool texinfo gfortran libusb-dev qt5-qtbase-dev qt5-qtmultimedia-dev qt5-qtserialport-dev qt5-qttools-dev asciidoctor asciidoc alsa-lib-dev linux-headers"
|
2019-01-13 14:12:09 +00:00
|
|
|
|
2019-01-22 14:52:53 +00:00
|
|
|
apk add --no-cache $STATIC_PACKAGES
|
|
|
|
apk add --no-cache --virtual .build-deps $BUILD_PACKAGES
|
|
|
|
|
2019-12-29 23:11:27 +00:00
|
|
|
git clone https://git.code.sf.net/p/itpp/git itpp
|
|
|
|
cmakebuild itpp bb5c7e95f40e8fdb5c3f3d01a84bcbaf76f3676d
|
2019-01-13 14:12:09 +00:00
|
|
|
|
2019-12-29 23:11:27 +00:00
|
|
|
git clone https://github.com/jketterl/csdr.git
|
2019-01-13 14:12:09 +00:00
|
|
|
cd csdr
|
2020-01-04 20:12:51 +00:00
|
|
|
git checkout 43c36df5dcd92d3bdb322f9d53f99ca0c7c816a4
|
2019-01-13 14:12:09 +00:00
|
|
|
make
|
|
|
|
make install
|
|
|
|
cd ..
|
|
|
|
rm -rf csdr
|
|
|
|
|
2019-12-29 23:11:27 +00:00
|
|
|
git clone https://github.com/szechyjs/mbelib.git
|
|
|
|
cmakebuild mbelib 9a04ed5c78176a9965f3d43f7aa1b1f5330e771f
|
2019-01-13 21:04:29 +00:00
|
|
|
|
2019-12-29 23:11:27 +00:00
|
|
|
git clone https://github.com/jketterl/digiham.git
|
2020-01-25 22:52:20 +00:00
|
|
|
cmakebuild digiham e5e11ce9611e3d8f5f9dce7dee97f86a31af107c
|
2019-01-13 14:12:09 +00:00
|
|
|
|
2019-12-29 23:11:27 +00:00
|
|
|
git clone https://github.com/f4exb/dsd.git
|
|
|
|
cmakebuild dsd f6939f9edbbc6f66261833616391a4e59cb2b3d7
|
2019-01-13 14:12:09 +00:00
|
|
|
|
2019-12-14 20:04:23 +00:00
|
|
|
WSJT_DIR=wsjtx-2.1.2
|
2019-07-13 19:35:57 +00:00
|
|
|
WSJT_TGZ=${WSJT_DIR}.tgz
|
|
|
|
wget http://physics.princeton.edu/pulsar/k1jt/$WSJT_TGZ
|
|
|
|
tar xvfz $WSJT_TGZ
|
|
|
|
cmakebuild $WSJT_DIR
|
|
|
|
|
2019-12-21 20:00:43 +00:00
|
|
|
git clone --depth 1 -b 1.5 https://github.com/wb2osz/direwolf.git
|
2019-08-23 20:21:30 +00:00
|
|
|
cd direwolf
|
|
|
|
patch -Np1 < /direwolf-1.5.patch
|
|
|
|
make
|
|
|
|
make install
|
|
|
|
cd ..
|
|
|
|
rm -rf direwolf
|
|
|
|
|
2019-12-29 23:11:27 +00:00
|
|
|
git clone https://github.com/hessu/aprs-symbols /opt/aprs-symbols
|
|
|
|
pushd /opt/aprs-symbols
|
|
|
|
git checkout 5c2abe2658ee4d2563f3c73b90c6f59124839802
|
|
|
|
popd
|
2019-09-25 21:40:17 +00:00
|
|
|
|
2019-01-22 14:52:53 +00:00
|
|
|
apk del .build-deps
|