aboutsummaryrefslogtreecommitdiff
path: root/academic/cistrome-MACS
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2022-03-03 20:59:41 +0100
committerAndrew Clemons <andrew.clemons@gmail.com>2022-03-05 00:18:21 +1300
commit09577efff1660d7ec30aa4f197a0d5b450ed8cc4 (patch)
tree8426c6869cc0456888fd92eaaedc68095617d062 /academic/cistrome-MACS
parentf2572885a8f8af8e422f93914d2b8f0fbb434818 (diff)
academic/cistrome-MACS: Handle content-disposition download.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org> Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Diffstat (limited to 'academic/cistrome-MACS')
-rw-r--r--academic/cistrome-MACS/cistrome-MACS.SlackBuild9
1 files changed, 8 insertions, 1 deletions
diff --git a/academic/cistrome-MACS/cistrome-MACS.SlackBuild b/academic/cistrome-MACS/cistrome-MACS.SlackBuild
index eb00d4f261d0..98f279db3c5c 100644
--- a/academic/cistrome-MACS/cistrome-MACS.SlackBuild
+++ b/academic/cistrome-MACS/cistrome-MACS.SlackBuild
@@ -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 . \