build latest hamlib

main
Links 2022-04-15 13:48:51 +02:00
rodzic 4edca456f2
commit 1d14aae1cb
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 68FB9F01C0C482FC
2 zmienionych plików z 36 dodań i 0 usunięć

Wyświetl plik

@ -94,6 +94,9 @@ Main() {
# framebuffer-vncserver
/root/framebuffer-vncserver-build.sh
# hamlib
/root/hamlib-build.sh
# cleanup image
rm -rf /root/build/
apt-get clean

Wyświetl plik

@ -0,0 +1,33 @@
#!/bin/bash
set -e
mkdir -p /root/build
cd /root/build
BASE_DIR=/root/build/Hamlib
mkdir -p /root/build
cd /root/build
if [ ! -e "${BASE_DIR}" ] ; then
git clone --depth=1 https://github.com/Hamlib/Hamlib.git
fi
cd "${BASE_DIR}"
git pull
mkdir -p "${BASE_DIR}/build"
cd "${BASE_DIR}/build"
../bootstrap
../configure --prefix="" --host=arm-linux-gnueabihf --libdir=/lib/arm-linux-gnueabihf --without-cxx-binding
make -f $(nproc)
make install
cd "${BASE_DIR}"
# cleanup
if [ -e "${BASE_DIR}/build" ] ; then
rm -rf "${BASE_DIR}/build"
fi