summaryrefslogtreecommitdiffstats
path: root/desktop
diff options
context:
space:
mode:
author Andrew Clemons2022-02-28 11:57:05 +0100
committer Willy Sudiarto Raharjo2022-03-01 13:35:44 +0100
commit76581dfce842be6b71fea35f5a9f3a8da64052bc (patch)
treef940d5b14df066536a5f7135cff2d04e89ce4752 /desktop
parentd4e75fec32e0419bedc5d3afda8ed87ae66603a6 (diff)
downloadslackbuilds-76581dfce842be6b71fea35f5a9f3a8da64052bc.tar.gz
desktop/kbdd: Fix github tarball handling.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'desktop')
-rw-r--r--desktop/kbdd/kbdd.SlackBuild7
1 files changed, 6 insertions, 1 deletions
diff --git a/desktop/kbdd/kbdd.SlackBuild b/desktop/kbdd/kbdd.SlackBuild
index 25f9b52528..3454c641fc 100644
--- a/desktop/kbdd/kbdd.SlackBuild
+++ b/desktop/kbdd/kbdd.SlackBuild
@@ -56,7 +56,12 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
+# respecting content-disposition may include cgi params in the filename
+TARBALL=$CWD/$PRGNAM-$VERSION.tar.bz2
+if [ ! -e $TARBALL ]; then
+ TARBALL="$(/bin/ls $TARBALL\?* | head -1)"
+fi
+tar xvf $TARBALL
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \