From c55b6b35eb5a2c906f8f590ce96203c1524f28a7 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Wed, 9 Feb 2022 14:33:35 -0500 Subject: system/xboxdrv-linux: Handle either download filename. Signed-off-by: B. Watson Signed-off-by: Willy Sudiarto Raharjo --- system/xboxdrv-linux/xboxdrv-linux.SlackBuild | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'system/xboxdrv-linux') diff --git a/system/xboxdrv-linux/xboxdrv-linux.SlackBuild b/system/xboxdrv-linux/xboxdrv-linux.SlackBuild index f668618c3949..24abf36b03d6 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 . \ -- cgit v1.2.3