From 7bae008ed236d0de5fec2ef38d941f0ffbc4fdcc Mon Sep 17 00:00:00 2001 From: Andrew Clemons Date: Thu, 10 Mar 2022 19:42:36 +1300 Subject: 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 --- ham/klog/klog.SlackBuild | 6 +++++- ham/klog/klog.info | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'ham/klog') diff --git a/ham/klog/klog.SlackBuild b/ham/klog/klog.SlackBuild index 47b867df35..ed669217a9 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 fb2db07a49..1e634dbbea 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="" -- cgit v1.2.3-65-gdbad