aboutsummaryrefslogtreecommitdiff
path: root/desktop/kbdd
diff options
context:
space:
mode:
authorAndrew Clemons <andrew.clemons@gmail.com>2022-02-28 23:57:05 +1300
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-03-01 19:35:44 +0700
commit76581dfce842be6b71fea35f5a9f3a8da64052bc (patch)
treef940d5b14df066536a5f7135cff2d04e89ce4752 /desktop/kbdd
parentd4e75fec32e0419bedc5d3afda8ed87ae66603a6 (diff)
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/kbdd')
-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 25f9b52528427..3454c641fc1e3 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 . \