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:
parent
f2572885a8
commit
09577efff1
|
@ -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 . \
|
||||
|
|
Loading…
Reference in New Issue