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 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'ham/klog/klog.SlackBuild') 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 . \ -- cgit v1.2.3