summaryrefslogtreecommitdiffstats
path: root/system/xboxdrv-linux
diff options
context:
space:
mode:
author B. Watson2022-02-09 20:33:35 +0100
committer Willy Sudiarto Raharjo2022-02-11 18:29:37 +0100
commitc55b6b35eb5a2c906f8f590ce96203c1524f28a7 (patch)
treebc403c27db4fdcd8878786763e7590ee1e0cac56 /system/xboxdrv-linux
parentdcf5419ca1ab00fb23ffadf21332fe7e8c5938e5 (diff)
downloadslackbuilds-c55b6b35eb5a2c906f8f590ce96203c1524f28a7.tar.gz
system/xboxdrv-linux: Handle either download filename.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/xboxdrv-linux')
-rw-r--r--system/xboxdrv-linux/xboxdrv-linux.SlackBuild10
1 files changed, 9 insertions, 1 deletions
diff --git a/system/xboxdrv-linux/xboxdrv-linux.SlackBuild b/system/xboxdrv-linux/xboxdrv-linux.SlackBuild
index f668618c39..24abf36b03 100644
--- a/system/xboxdrv-linux/xboxdrv-linux.SlackBuild
+++ b/system/xboxdrv-linux/xboxdrv-linux.SlackBuild
@@ -23,6 +23,9 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20220209 bkw: Modified by SlackBuilds.org: handle both possibilities for
+# the tarball filename. However, this is *still broken* due to scons issues.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=xboxdrv-linux
@@ -67,12 +70,17 @@ fi
set -e
+# 20220209 bkw: different clients (browsers, wget, curl) save the file with
+# a different filename, depending on whether they respect Content-disposition.
+TARBALL=$CWD/6e5e8a57628095d8d0c8bbb38187afb0f3a42112.tar.gz
+[ -e "$TARBALL" ] || TARBALL=$CWD/xboxdrv-6e5e8a57628095d8d0c8bbb38187afb0f3a42112.tar.gz
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
mkdir $PRGNAM-$VERSION
-tar xvf $CWD/6e5e8a57628095d8d0c8bbb38187afb0f3a42112.tar.gz --strip-components 1 -C $PRGNAM-$VERSION
+tar xvf $TARBALL --strip-components 1 -C $PRGNAM-$VERSION
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \