aboutsummaryrefslogtreecommitdiff
path: root/ham/klog/klog.SlackBuild
diff options
context:
space:
mode:
authorAndrew Clemons <andrew.clemons@gmail.com>2022-03-10 19:42:36 +1300
committerAndrew Clemons <andrew.clemons@gmail.com>2022-03-10 20:12:59 +1300
commit7bae008ed236d0de5fec2ef38d941f0ffbc4fdcc (patch)
tree74efbe21e2a0d81f7f47314570258cd8d4a704ba /ham/klog/klog.SlackBuild
parent63139167bee3e9fb125b60fc99191ba37243232a (diff)
ham/klog: Fix DOWNLOAD.
There is both a tag and a branch with the name 1.8.7, so the other URL is ambigious. github recently started returning an HTML page in this case indicating the error. I have updated the URL to use the link directly to the tag and added handling for both file names which can result. Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Diffstat (limited to 'ham/klog/klog.SlackBuild')
-rw-r--r--ham/klog/klog.SlackBuild6
1 files changed, 5 insertions, 1 deletions
diff --git a/ham/klog/klog.SlackBuild b/ham/klog/klog.SlackBuild
index 47b867df3559a..ed669217a900b 100644
--- a/ham/klog/klog.SlackBuild
+++ b/ham/klog/klog.SlackBuild
@@ -68,7 +68,11 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar -xvf $CWD/$PRGNAM-$VERSION.tar.gz
+TARBALL="$CWD/$VERSION.tar.gz"
+if [ ! -e "$TARBALL" ] ; then
+ TARBALL="$CWD/$PRGNAM-$VERSION.tar.gz"
+fi
+tar -xvf $TARBALL
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \