desktop/pidgin-window_merge: Fix github tarball handling.

Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Andrew Clemons 2022-02-28 23:59:40 +13:00 committed by Willy Sudiarto Raharjo
parent 76581dfce8
commit 4fdcda7f77
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
1 changed files with 6 additions and 1 deletions

View File

@ -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 . \