diff --git a/patch/flamp-20210912 b/patch/flamp-20210912 new file mode 100644 index 0000000..ed2adc2 --- /dev/null +++ b/patch/flamp-20210912 @@ -0,0 +1,40 @@ +#!/bin/bash + +#This script installs FLAMP. +#20210912 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=flamp-20210912 + +PATCHFILE=$HOME/.config/patch +touch $PATCHFILE +############################### +#Patch script commands go here# +############################### + #determine latest FLAMP + AMPTAR=$(curl -s http://www.w1hkj.com/files/flamp/ | grep .tar.gz | sed 's/
  • \ flamp.*$//' | tac | head -1) + AMPPKG=$(echo ${AMPTAR} | sed 's/.tar.gz//') + + #download FLAMP + cd ${HOME}/Downloads || return + wget --tries 2 --connect-timeout=60 http://www.w1hkj.com/files/flamp/$AMPTAR + tar -zxvf ${AMPTAR} + + + #build FLAMP + cd ${AMPPKG} || return + ./configure --prefix=/usr/local --enable-static + 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