diff options
author | B. Watson <yalhcru@gmail.com> | 2022-02-09 14:33:35 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-02-12 00:29:37 +0700 |
commit | c55b6b35eb5a2c906f8f590ce96203c1524f28a7 (patch) | |
tree | bc403c27db4fdcd8878786763e7590ee1e0cac56 /system/xboxdrv-linux | |
parent | dcf5419ca1ab00fb23ffadf21332fe7e8c5938e5 (diff) |
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.SlackBuild | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/system/xboxdrv-linux/xboxdrv-linux.SlackBuild b/system/xboxdrv-linux/xboxdrv-linux.SlackBuild index f668618c39490..24abf36b03d67 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 . \ |