summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 eb00d4f261..98f279db3c 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 . \