nongnu: steam: Fix for new installs.

* nongnu/packages/steam-client.scm (steam-client)[arguments]: Modify steam.sh
and run.sh in steam runtime to prefer LD_LIBRARY_PATH.
This commit is contained in:
ison 2021-03-04 12:59:09 -07:00
parent 4e84540013
commit 1404b00a49
No known key found for this signature in database
GPG key ID: 5E76B1AD0FC22F93

View file

@ -115,7 +115,20 @@
(list "PREFIX=" (string-append "DESTDIR=" (assoc-ref %outputs "out")))
#:phases
(modify-phases %standard-phases
(delete 'configure)
(replace 'configure
(lambda _
(mkdir-p "bootstrap-temp")
(invoke "tar" "xfa" "bootstraplinux_ubuntu12_32.tar.xz"
"-C" "bootstrap-temp")
(substitute* "bootstrap-temp/steam.sh"
(("export LD_LIBRARY_PATH=\"")
"export LD_LIBRARY_PATH=\"${LD_LIBRARY_PATH-}:"))
(substitute* "bootstrap-temp/ubuntu12_32/steam-runtime/run.sh"
(("^export LD_LIBRARY_PATH=.*")
"export LD_LIBRARY_PATH=\"${LD_LIBRARY_PATH-}:$steam_runtime_library_paths\""))
(invoke "tar" "cfJ" "bootstraplinux_ubuntu12_32.tar.xz" "-C" "bootstrap-temp"
"linux32" "ubuntu12_32" "steam.sh" "steamdeps.txt")
(delete-file-recursively "bootstrap-temp")))
(add-after 'unpack 'patch-startscript
(lambda _
(substitute* "steam"