diff --git a/patch/hamlib4.3 b/patch/hamlib4.3 new file mode 100644 index 0000000..dac0f95 --- /dev/null +++ b/patch/hamlib4.3 @@ -0,0 +1,47 @@ +#!/bin/bash + +#This script will install the latest version of hamlib-1.0 +#and then install hamlib 4.3 +#https://github.com/km4ack/pi-build/issues/296 +#20210805 KM4ACK + +#Give this patch a unique name. A good idea is +#to give it the application name that is being +#patched followed by the date. ie FLDIDI20210805 + +PATCHNAME=hamlib4.3-20210905 + +PATCHFILE=$HOME/.config/patch +touch $PATCHFILE +############################### +#Patch script commands go here# +############################### +clear;echo;echo +echo "installing libusb library" +cd $HOME/Downloads +wget https://sourceforge.net/projects/libusb/files/libusb-1.0/libusb-1.0.24/libusb-1.0.24.tar.bz2 +tar -xf libusb-1.0.24.tar.bz2 +cd libusb-1.0.24 +./configure +make +sudo make install + + +cd $HOME/Downloads +wget https://github.com/Hamlib/Hamlib/releases/download/4.3/hamlib-4.3.tar.gz +tar -xf hamlib-4.3.tar.gz +cd hamlib-4.3 +./configure +make +sudo make install +sudo ldconfig + + + +############################################# +#write patch name to a file so we can # +#look and see if it has been applied before.# +#This is checked by the patch-menu script # +#before running the patch # +############################################# +echo "$PATCHNAME" >> $PATCHFILE \ No newline at end of file