summaryrefslogtreecommitdiff
path: root/academic/g3data
diff options
context:
space:
mode:
authorAndrew Clemons <andrew.clemons@gmail.com>2022-02-28 23:27:33 +1300
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-03-01 19:35:44 +0700
commit14c6c3de38a9ed564e72119aae16f746cc675ed8 (patch)
treeccfe250f8d724f53f31753f5050b5839246c272a /academic/g3data
parent8d5df7c5701367c9ae7f4538ad1747a52959e03b (diff)
downloadslackbuilds-14c6c3de38a9ed564e72119aae16f746cc675ed8.tar.gz
academic/g3data: Update github tarball handling.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'academic/g3data')
-rw-r--r--academic/g3data/g3data.SlackBuild7
1 files changed, 6 insertions, 1 deletions
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 . \