academic/g3data: Update 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:27:33 +13:00 committed by Willy Sudiarto Raharjo
parent 8d5df7c570
commit 14c6c3de38
No known key found for this signature in database
GPG key ID: 3F617144D7238786

View file

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