diff options
author | Andrew Clemons <andrew.clemons@gmail.com> | 2022-02-28 23:27:33 +1300 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-03-01 19:35:44 +0700 |
commit | 14c6c3de38a9ed564e72119aae16f746cc675ed8 (patch) | |
tree | ccfe250f8d724f53f31753f5050b5839246c272a /academic/g3data | |
parent | 8d5df7c5701367c9ae7f4538ad1747a52959e03b (diff) |
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.SlackBuild | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/academic/g3data/g3data.SlackBuild b/academic/g3data/g3data.SlackBuild index c188881d18859..c877a3fe845b3 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 . \ |