From 7a6b7c7305055bbea0df364005227838ac50ad63 Mon Sep 17 00:00:00 2001 From: Luigi Cruz Date: Thu, 12 Nov 2020 03:25:06 -0300 Subject: [PATCH] add hamlib support --- builder/stage4/21-pisdr-hamlib/00-run.sh | 16 ++++++++++++++++ .../00-run.sh | 0 2 files changed, 16 insertions(+) create mode 100755 builder/stage4/21-pisdr-hamlib/00-run.sh rename builder/stage4/{21-pisdr-leandvb => 29-pisdr-leandvb}/00-run.sh (100%) diff --git a/builder/stage4/21-pisdr-hamlib/00-run.sh b/builder/stage4/21-pisdr-hamlib/00-run.sh new file mode 100755 index 0000000..41a9073 --- /dev/null +++ b/builder/stage4/21-pisdr-hamlib/00-run.sh @@ -0,0 +1,16 @@ +#!/bin/bash -e + +on_chroot << EOF +mkdir -p "/home/${FIRST_USER_NAME}/PiSDR/Software" +cd "/home/${FIRST_USER_NAME}/PiSDR/Software" + +if [ ! -d "Hamlib" ]; then + git clone https://github.com/Hamlib/Hamlib.git +fi + +cd Hamlib +./bootstrap +./configure --with-python-binding +make -j$(nproc) +ldconfig +EOF \ No newline at end of file diff --git a/builder/stage4/21-pisdr-leandvb/00-run.sh b/builder/stage4/29-pisdr-leandvb/00-run.sh similarity index 100% rename from builder/stage4/21-pisdr-leandvb/00-run.sh rename to builder/stage4/29-pisdr-leandvb/00-run.sh