aboutsummaryrefslogtreecommitdiff
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
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>
-rw-r--r--ham/klog/klog.SlackBuild6
-rw-r--r--ham/klog/klog.info2
2 files changed, 6 insertions, 2 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 . \
diff --git a/ham/klog/klog.info b/ham/klog/klog.info
index fb2db07a49e65..1e634dbbeaa14 100644
--- a/ham/klog/klog.info
+++ b/ham/klog/klog.info
@@ -1,7 +1,7 @@
PRGNAM="klog"
VERSION="1.8.7"
HOMEPAGE="https://www.klog.xyz"
-DOWNLOAD="https://github.com/ea4k/klog/archive/1.8.7/klog-1.8.7.tar.gz"
+DOWNLOAD="https://github.com/ea4k/klog/archive/refs/tags/1.8.7.tar.gz"
MD5SUM="d53301013b596d9fc07daf52749b974d"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""