academic/cistrome-MACS: Handle content-disposition download.

Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>

Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
This commit is contained in:
Matteo Bernardini 2022-03-03 20:59:41 +01:00 committed by Andrew Clemons
parent f2572885a8
commit 09577efff1
No known key found for this signature in database
GPG Key ID: CD26380FFACBDA2B
1 changed files with 8 additions and 1 deletions

View File

@ -67,13 +67,20 @@ else
LIBDIRSUFFIX=""
fi
# 20220222 bkw: depending on what client was used to download the file,
# it may have CGI parameters in the filename.
TARBALL=$CWD/${SRCNAM}-$SRCVER.tar.gz
if [ ! -e $TARBALL ]; then
TARBALL="$( /bin/ls $TARBALL\?* | head -1 )"
fi
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $SRCNAM-$VERSION
tar xvf $CWD/$SRCNAM-$SRCVER.tar.gz
tar xvf $TARBALL
cd $SRCNAM-$VERSION
chown -R root:root .
find -L . \