Skip to content

Commit 20bbf94

Browse files
committed
remove 4.2 patch
1 parent 0d129e8 commit 20bbf94

File tree

2 files changed

+62
-35
lines changed

2 files changed

+62
-35
lines changed

patch/hamlib4.2-20210909

Lines changed: 0 additions & 35 deletions
This file was deleted.

patch/hamlib4.3-20210920

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
#!/bin/bash
2+
3+
#This test-patch script should serve as a
4+
#template for future patch scripts.
5+
#20210805 KM4ACK
6+
7+
#Give this patch a unique name. A good idea is
8+
#to give it the application name that is being
9+
#patched followed by the date. ie FLDIDI20210805
10+
11+
PATCHNAME=hamlib4.3-20210920
12+
13+
PATCHFILE=$HOME/.config/patch
14+
touch $PATCHFILE
15+
###############################
16+
#Patch script commands go here#
17+
###############################
18+
clear;echo;echo
19+
if [ -d $HOME/Downloads/hamlib-4.3 ]; then
20+
cd $HOME/Downloads/hamlib-4.3
21+
sudo make uninstall
22+
sudo make clean
23+
sudo apt install -y libusb-1.0 libusb-dev
24+
./configure
25+
make
26+
sudo make install
27+
sudo ldconfig
28+
else
29+
echo "###################################"
30+
echo "hamlib source directory not found"
31+
echo "Downloading hamlib"
32+
echo "###################################"
33+
sleep 2
34+
cd $HOME/Downloads
35+
NEWRIG=$(curl -s https://sourceforge.net/projects/hamlib/files/latest/download |
36+
grep -o https://downloads.sourceforge.net/project/hamlib/hamlib/[0-9].[0-9] |
37+
head -n 1 | awk -F "/" '{print $7}')
38+
HAMLIBLINK=https://sourceforge.net/projects/hamlib/files/hamlib/${NEWRIG}/hamlib-${NEWRIG}.tar.gz
39+
cd ${HOME}/Downloads || return
40+
echo "###################################"
41+
echo "# Installing Hamlib "
42+
echo "###################################"
43+
wget --tries 2 --connect-timeout=60 ${HAMLIBLINK}
44+
45+
tar -xzf hamlib-${NEWRIG}.tar.gz
46+
rm hamlib-${NEWRIG}.tar.gz
47+
cd hamlib-${NEWRIG} || return
48+
sudo apt install -y libusb-1.0 libusb-dev
49+
./configure
50+
make
51+
sudo make install
52+
sudo ldconfig
53+
fi
54+
55+
56+
#############################################
57+
#write patch name to a file so we can #
58+
#look and see if it has been applied before.#
59+
#This is checked by the patch-menu script #
60+
#before running the patch #
61+
#############################################
62+
echo "$PATCHNAME" >> $PATCHFILE

0 commit comments

Comments
 (0)