#!/bin/bash set -euxo pipefail function cmakebuild() { cd $1 mkdir build cd build cmake .. make make install cd ../.. rm -rf $1 } cd /tmp STATIC_PACKAGES="sox fftw python3 netcat-openbsd libsndfile lapack" BUILD_PACKAGES="git libsndfile-dev fftw-dev cmake ca-certificates make gcc musl-dev g++ lapack-dev linux-headers" apk add --no-cache $STATIC_PACKAGES apk add --no-cache --virtual .build-deps $BUILD_PACKAGES git clone https://git.code.sf.net/p/itpp/git itpp cmakebuild itpp git clone https://github.com/simonyiszk/csdr.git cd csdr patch -Np1 <<'EOF' --- a/csdr.c +++ b/csdr.c @@ -38,6 +38,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include #include #include +#include #include #include #include diff --git a/ddcd_old.h b/ddcd_old.h index af4cfb5..b70092b 100644 --- a/ddcd_old.h +++ b/ddcd_old.h @@ -19,6 +19,7 @@ #include #include #include +#include typedef struct client_s { diff --git a/nmux.h b/nmux.h index 038bc51..079e416 100644 --- a/nmux.h +++ b/nmux.h @@ -11,6 +11,7 @@ #include #include #include +#include #include "tsmpool.h" #define MSG_START "nmux: " EOF make make install cd .. rm -rf csdr git clone https://github.com/szechyjs/mbelib.git cmakebuild mbelib git clone https://github.com/jketterl/digiham.git cmakebuild digiham git clone https://github.com/f4exb/dsd.git cmakebuild dsd apk del .build-deps