From 7c14656e29129ecd49eb2b06b027eba4f57634e1 Mon Sep 17 00:00:00 2001 From: Marat Fayzullin Date: Sat, 14 Oct 2023 23:04:49 -0400 Subject: [PATCH] buildall.sh script will build OWRX+ package and all its dependencies. --- buildall.sh | 72 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100755 buildall.sh diff --git a/buildall.sh b/buildall.sh new file mode 100755 index 00000000..884721c6 --- /dev/null +++ b/buildall.sh @@ -0,0 +1,72 @@ +#!/bin/bash + +# +# This script will check out and build all the latest OpenWebRX+ +# packages in the BUILD_DIR folder, placing .deb files into +# OUTPUT_DIR folder. +# + +BUILD_DIR=./owrx-build +OUTPUT_DIR=./owrx-output + +rm -rf ${BUILD_DIR} ${OUTPUT_DIR} +mkdir ${BUILD_DIR} ${OUTPUT_DIR} +pushd ${BUILD_DIR} + +echo "##### Cloning GIT repositories to ${BUILD_DIR} ... #####" +git clone https://github.com/luarvique/csdr.git +git clone https://github.com/luarvique/pycsdr.git +git clone https://github.com/luarvique/owrx_connector.git +git clone https://github.com/luarvique/openwebrx.git +git clone https://github.com/luarvique/SoapySDRPlay3.git + +echo "##### Building CSDR... #####" +pushd csdr +dpkg-buildpackage -us -uc +popd +# PyCSDR and OWRX-Connector builds depend on the latest CSDR +sudo dpkg -i csdr*.deb libcsdr*.deb nmux*.deb + +echo "##### Building PyCSDR... #####" +pushd pycsdr +dpkg-buildpackage -us -uc +popd +# OpenWebRX build depends on the latest PyCSDR +sudo dpkg -i python3-csdr*.deb + +echo "##### Building OWRX-Connector... #####" +pushd owrx_connector +dpkg-buildpackage -us -uc +popd +# OpenWebRX build depends on the latest OWRX-Connector +sudo dpkg -i *connector*.deb + +echo "##### Building OpenWebRX... #####" +pushd openwebrx +dpkg-buildpackage -us -uc +popd +# Not installing OpenWebRX here since there are no further +# build steps depending on it +#sudo dpkg -i openwebrx*.deb + +pushd SoapySDRPlay3 +# Debian Bullseye uses SoapySDR v0.7 +HAVE_SOAPY=`apt-cache search libsoapysdr0.7` +if [ ! -z "${HAVE_SOAPY}" ] ; then + echo "##### Building SoapySDRPlay3 v0.7 (Debian) ... #####" + cp debian/control.debian debian/control + dpkg-buildpackage -us -uc +fi +# Ubuntu Jammy uses SoapySDR v0.8 +HAVE_SOAPY=`apt-cache search libsoapysdr0.8` +if [ ! -z "${HAVE_SOAPY}" ] ; then + echo "##### Building SoapySDRPlay3 v0.8 (Ubuntu) ... #####" + cp debian/control.ubuntu debian/control + dpkg-buildpackage -us -uc +fi +popd + +echo "##### Moving packages to ${OUTPUT_DIR} ... #####" +popd +mv ${BUILD_DIR}/*.deb ${OUTPUT_DIR} +echo "##### ALL DONE! #####"