From 4fdcda7f777a6cae756aeb496cf78c06e533bf7a Mon Sep 17 00:00:00 2001 From: Andrew Clemons Date: Mon, 28 Feb 2022 23:59:40 +1300 Subject: desktop/pidgin-window_merge: Fix github tarball handling. Signed-off-by: Andrew Clemons Signed-off-by: Willy Sudiarto Raharjo --- desktop/pidgin-window_merge/pidgin-window_merge.SlackBuild | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'desktop/pidgin-window_merge') diff --git a/desktop/pidgin-window_merge/pidgin-window_merge.SlackBuild b/desktop/pidgin-window_merge/pidgin-window_merge.SlackBuild index 00199b698aee7..ff6ce59f8726b 100644 --- a/desktop/pidgin-window_merge/pidgin-window_merge.SlackBuild +++ b/desktop/pidgin-window_merge/pidgin-window_merge.SlackBuild @@ -75,7 +75,12 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf window_merge-$VERSION -tar xvf $CWD/window_merge-$VERSION.tar.gz || tar xvf $CWD/$VERSION.tar.gz +# respecting content-disposition may include cgi params in the filename +TARBALL=$CWD/window_merge-$VERSION.tar.gz +if [ ! -e $TARBALL ]; then + TARBALL="$(/bin/ls $TARBALL\?* | head -1)" +fi +tar xvf $TARBALL cd window_merge-$VERSION chown -R root:root . find -L . \ -- cgit v1.2.3