Frustratingly, Ubuntu ships no python binary by default, only python3,
so we can't just call python and expect it to work. This will fail on
distros that don't ship python3, but them's the breaks.
--Added double quotes around various variables to avoid globbing and word splitting.
--Removed use of legacy basetick and replaced with $()
--Avoid use of -a and -o and replaced with || and && which are more preferred.
Suggestions and fixes were recommended by shellcheck.
DXVK needs to make some calls to openvr_api, but the game may not ship
it in a predictable location. So we provide a fallback called
openvr_api_dxvk.dll, which DXVK knows to load.
Modern OSes set TERM=xterm-256color, but the ancient curses shipped by
the Steam runtime doesn't support this term type, so it fails and often
kills the process. Let's try building without curses to avoid this.
The Steam runtime ships a too-old version of OpenAL and it's difficult
for them to upgrade.
Note that this needs a new version of cmake installed in your chroots.