ports/contrib (3.5): steam-native-runtime: moved start ccript form steam to here
commit 6b05283a641ebaaceafdf9d981a7a68d99fb558f Author: Danny Rawlins <monster.romster@gmail.com> Date: Thu Sep 19 22:57:27 2019 +1000 steam-native-runtime: moved start ccript form steam to here diff --git a/steam-native-runtime/.footprint b/steam-native-runtime/.footprint index 778b7db8..c36c4501 100644 --- a/steam-native-runtime/.footprint +++ b/steam-native-runtime/.footprint @@ -1,13 +1,18 @@ drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwxr-xr-x root/root usr/bin/steam-native drwxr-xr-x root/root usr/lib/ drwxr-xr-x root/root usr/lib/steam/ lrwxrwxrwx root/root usr/lib/steam/libcurl.so.3 -> /usr/lib/libcurl.so.3 -lrwxrwxrwx root/root usr/lib/steam/libcurl.so.4 -> /usr/lib/libcurl.so.4.5.0 -lrwxrwxrwx root/root usr/lib/steam/libcurl.so.4.5.0 -> /usr/lib/libcurl.so.4.5.0 +lrwxrwxrwx root/root usr/lib/steam/libcurl.so.4 -> /usr/lib/libcurl.so.4.2.0 +lrwxrwxrwx root/root usr/lib/steam/libcurl.so.4.2.0 -> /usr/lib/libcurl.so.4.2.0 lrwxrwxrwx root/root usr/lib/steam/libpcre.so.3 -> /usr/lib/libpcre.so drwxr-xr-x root/root usr/lib32/ drwxr-xr-x root/root usr/lib32/steam/ lrwxrwxrwx root/root usr/lib32/steam/libcurl.so.3 -> /usr/lib32/libcurl.so.3 -lrwxrwxrwx root/root usr/lib32/steam/libcurl.so.4 -> /usr/lib32/libcurl.so.4.5.0 -lrwxrwxrwx root/root usr/lib32/steam/libcurl.so.4.5.0 -> /usr/lib32/libcurl.so.4.5.0 +lrwxrwxrwx root/root usr/lib32/steam/libcurl.so.4 -> /usr/lib32/libcurl.so.4.2.0 +lrwxrwxrwx root/root usr/lib32/steam/libcurl.so.4.2.0 -> /usr/lib32/libcurl.so.4.2.0 lrwxrwxrwx root/root usr/lib32/steam/libpcre.so.3 -> /usr/lib32/libpcre.so +drwxr-xr-x root/root usr/share/ +drwxr-xr-x root/root usr/share/applications/ +-rw-r--r-- root/root usr/share/applications/steam-native.desktop diff --git a/steam-native-runtime/.signature b/steam-native-runtime/.signature index 97a2fa67..5dd23609 100644 --- a/steam-native-runtime/.signature +++ b/steam-native-runtime/.signature @@ -1,4 +1,5 @@ untrusted comment: verify with /etc/ports/contrib.pub -RWSagIOpLGJF35ICc+sth3aOMjMe11uTWtz5ZJAkMwSZ/YaN532b29hTn7L9ynDf4xvvLlvOdblMINsAC5GuVeKeviUMax+jcg8= -SHA256 (Pkgfile) = 4bbdb41708d0231480f8906eab75f7e38232b9f25e09930d2d0068c56bd56c5b -SHA256 (.footprint) = cce87ee8980bf81b8d8fc8b0b819a1520ea86bd9f982b5baca5f75b6ad718cce +RWSagIOpLGJF30Xweovbp0tkTRnDfGn5HoxjulkWxxeSqnKK2jRre14AxH8LQej/ucq3iG1aZpl+bct8RyDBnk5VHbxLFRs+KAY= +SHA256 (Pkgfile) = 5332b81e98a5e6cc0594fbdf66ea21815af47a9752f21a60d44fc86f3f8ab928 +SHA256 (.footprint) = 5ff56e696db8131b399fce9cdd3b55bf3131ed3fa7a6e4532f358103daf2ef6d +SHA256 (steam-native.sh) = cdd376f86dbe4e883f971c0afae5a0f3f339da53e6c02856a733b1f05145cde7 diff --git a/steam-native-runtime/Pkgfile b/steam-native-runtime/Pkgfile index 25c256c8..43c3a03f 100644 --- a/steam-native-runtime/Pkgfile +++ b/steam-native-runtime/Pkgfile @@ -6,19 +6,26 @@ name=steam-native-runtime version=0.1 -release=2 -source=() +release=3 +source=(steam-native.sh) build() { - install -d $PKG/usr/lib/steam + cp /usr/share/applications/steam.desktop steam-native.desktop + sed -r 's|(Name=Steam) \(Runtime\)|\1 (Native)|' -i steam-native.desktop + sed -r 's|(/usr/bin/steam)-runtime|\1-native|' -i steam-native.desktop + + install -Dm 644 steam-native.desktop -t ${PKG}/usr/share/applications + install -Dm 755 steam-native.sh ${PKG}/usr/bin/steam-native + + install -d ${PKG}/usr/lib/steam ln -s /usr/lib/libcurl.so.3 ${PKG}/usr/lib/steam/libcurl.so.3 - ln -s /usr/lib/libcurl.so.4.5.0 ${PKG}/usr/lib/steam/libcurl.so.4 - ln -s /usr/lib/libcurl.so.4.5.0 ${PKG}/usr/lib/steam/libcurl.so.4.5.0 + ln -s /usr/lib/libcurl.so.4.2.0 ${PKG}/usr/lib/steam/libcurl.so.4 + ln -s /usr/lib/libcurl.so.4.2.0 ${PKG}/usr/lib/steam/libcurl.so.4.2.0 install -d ${PKG}/usr/lib32/steam ln -s /usr/lib32/libcurl.so.3 ${PKG}/usr/lib32/steam/libcurl.so.3 - ln -s /usr/lib32/libcurl.so.4.5.0 ${PKG}/usr/lib32/steam/libcurl.so.4 - ln -s /usr/lib32/libcurl.so.4.5.0 ${PKG}/usr/lib32/steam/libcurl.so.4.5.0 + ln -s /usr/lib32/libcurl.so.4.2.0 ${PKG}/usr/lib32/steam/libcurl.so.4 + ln -s /usr/lib32/libcurl.so.4.2.0 ${PKG}/usr/lib32/steam/libcurl.so.4.2.0 # Apparently libpcre.so.3 is just a Debian-specific version of libpcre.so.1 # https://sources.debian.org/src/pcre3/2:8.39-12/debian/README.Debian/ diff --git a/steam-native-runtime/steam-native.sh b/steam-native-runtime/steam-native.sh new file mode 100644 index 00000000..c8035c98 --- /dev/null +++ b/steam-native-runtime/steam-native.sh @@ -0,0 +1,17 @@ +#!/bin/bash +export STEAM_RUNTIME=0 +export STEAM_RUNTIME_HEAVY=0 +# Workaround for dbus fatal termination related coredumps (SIGABRT) +# https://github.com/ValveSoftware/steam-for-linux/issues/4464 +export DBUS_FATAL_WARNINGS=0 +# Override some libraries as these are what games linked against. +export LD_LIBRARY_PATH="/usr/lib/steam:/usr/lib32/steam${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH" + +prt-get isinst apulse-32 > /dev/null + +if [ $? = 0 ]; then + exec /usr/bin/apulse-32 /usr/lib/steam/steam "$@" +else + exec /usr/lib/steam/steam "$@" +fi +
participants (1)
-
crux@crux.nu