From 6abdc6ae3a72bc6da20b9c4fee53556de6aba83d Mon Sep 17 00:00:00 2001 From: luigifcruz Date: Fri, 24 Dec 2021 17:57:59 -0300 Subject: [PATCH] Second batch of new applications for v6.0. --- stage4/07-pisdr-sdrplay/00-run.sh | 1 + stage4/37-pisdr-nrsc5/00-packages-nr | 5 +++++ stage4/37-pisdr-nrsc5/00-run.sh | 19 +++++++++++++++++++ .../00-run.sh | 0 .../01-run.sh | 0 5 files changed, 25 insertions(+) create mode 100644 stage4/37-pisdr-nrsc5/00-packages-nr create mode 100755 stage4/37-pisdr-nrsc5/00-run.sh rename stage4/{37-pisdr-cleanup => 38-pisdr-cleanup}/00-run.sh (100%) rename stage4/{37-pisdr-cleanup => 38-pisdr-cleanup}/01-run.sh (100%) diff --git a/stage4/07-pisdr-sdrplay/00-run.sh b/stage4/07-pisdr-sdrplay/00-run.sh index 3382cbd..8b7462b 100755 --- a/stage4/07-pisdr-sdrplay/00-run.sh +++ b/stage4/07-pisdr-sdrplay/00-run.sh @@ -13,6 +13,7 @@ chmod +x ./SDRplay_RSP_API-ARM32-3.07.2.run ./SDRplay_RSP_API-ARM32-3.07.2.run --check ./SDRplay_RSP_API-ARM32-3.07.2.run --noexec --target . sed -i 's/more sdrplay_license.txt//g' install_lib.sh +sed -i 's/armv7l/armv8l/g' install_lib.sh printf "\ny\ny\ny\n" | ./install_lib.sh systemctl enable --now sdrplay EOF diff --git a/stage4/37-pisdr-nrsc5/00-packages-nr b/stage4/37-pisdr-nrsc5/00-packages-nr new file mode 100644 index 0000000..572f460 --- /dev/null +++ b/stage4/37-pisdr-nrsc5/00-packages-nr @@ -0,0 +1,5 @@ +autoconf +libtool +libao-dev +libfftw3-dev +libfaad-dev \ No newline at end of file diff --git a/stage4/37-pisdr-nrsc5/00-run.sh b/stage4/37-pisdr-nrsc5/00-run.sh new file mode 100755 index 0000000..6cf62ae --- /dev/null +++ b/stage4/37-pisdr-nrsc5/00-run.sh @@ -0,0 +1,19 @@ +#!/bin/bash -e + +on_chroot << EOF +mkdir -p "/home/${FIRST_USER_NAME}/PiSDR/Software" +cd "/home/${FIRST_USER_NAME}/PiSDR/Software" + +if [ ! -d "nrsc5" ]; then + git clone --depth 1 https://github.com/theori-io/nrsc5.git +fi + +cd nrsc5 +mkdir -p build +cd build +cmake -DUSE_NEON=OFF -DUSE_FAAD2=OFF -GNinja .. +ninja install +ldconfig +cd .. +rm -fr build +EOF \ No newline at end of file diff --git a/stage4/37-pisdr-cleanup/00-run.sh b/stage4/38-pisdr-cleanup/00-run.sh similarity index 100% rename from stage4/37-pisdr-cleanup/00-run.sh rename to stage4/38-pisdr-cleanup/00-run.sh diff --git a/stage4/37-pisdr-cleanup/01-run.sh b/stage4/38-pisdr-cleanup/01-run.sh similarity index 100% rename from stage4/37-pisdr-cleanup/01-run.sh rename to stage4/38-pisdr-cleanup/01-run.sh