diff options
author | Andrew Clemons <andrew.clemons@gmail.com> | 2022-02-28 23:57:05 +1300 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-03-01 19:35:44 +0700 |
commit | 76581dfce842be6b71fea35f5a9f3a8da64052bc (patch) | |
tree | f940d5b14df066536a5f7135cff2d04e89ce4752 | |
parent | d4e75fec32e0419bedc5d3afda8ed87ae66603a6 (diff) | |
download | slackbuilds-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>
-rw-r--r-- | desktop/kbdd/kbdd.SlackBuild | 7 |
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 . \ |