From 14c6c3de38a9ed564e72119aae16f746cc675ed8 Mon Sep 17 00:00:00 2001 From: Andrew Clemons Date: Mon, 28 Feb 2022 23:27:33 +1300 Subject: [PATCH] academic/g3data: Update github tarball handling. Signed-off-by: Andrew Clemons Signed-off-by: Willy Sudiarto Raharjo --- academic/g3data/g3data.SlackBuild | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/academic/g3data/g3data.SlackBuild b/academic/g3data/g3data.SlackBuild index c188881d18..c877a3fe84 100644 --- a/academic/g3data/g3data.SlackBuild +++ b/academic/g3data/g3data.SlackBuild @@ -71,7 +71,12 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +# respecting content-disposition may include cgi params in the filename +TARBALL=$CWD/$PRGNAM-$VERSION.tar.gz +if [ ! -e $TARBALL ]; then + TARBALL="$(/bin/ls $TARBALL\?* | head -1)" +fi +tar xvf $TARBALL cd $PRGNAM-$VERSION chown -R root:root . find -L . \