diff --git a/app-check b/app-check index b1291aa..bdf46ef 100644 --- a/app-check +++ b/app-check @@ -113,6 +113,7 @@ if ! hash rigctl 2>/dev/null; then else echo "Checking Rig Control" RIG=$(rigctl --version | grep Hamlib | sed s/"rigctl(d),\ Hamlib\ "//) + CURRENT=$(rigctl --version | sed 's/rigctl Hamlib //' | cut -d " " -f1) NEWRIG=$(curl -s https://sourceforge.net/projects/hamlib/files/latest/download | grep -o https://downloads.sourceforge.net/project/hamlib/hamlib/[0-9].[0-9] | head -n 1 | awk -F "/" '{print $7}') diff --git a/functions/base.function b/functions/base.function index 8322bfa..a6e7249 100644 --- a/functions/base.function +++ b/functions/base.function @@ -192,7 +192,7 @@ VARA() { HAMLIB() { PACKAGE=hamlib CLEANSOURCE - sudo apt install libusb-1.0-0 libusb-1.0-0-dev + sudo apt install -y libusb-1.0-0 libusb-1.0-0-dev swig cd ${BUILDDIR} || return NEWRIG=$(curl -s https://sourceforge.net/projects/hamlib/files/latest/download | grep -o https://downloads.sourceforge.net/project/hamlib/hamlib/[0-9].[0-9] | @@ -206,7 +206,7 @@ HAMLIB() { tar -xzf hamlib-${NEWRIG}.tar.gz rm hamlib-${NEWRIG}.tar.gz cd hamlib-${NEWRIG} || return - ./configure + ./configure --with-python-binding make sudo make install sudo ldconfig