forked from ports/contrib
steam-native-runtime: moved start ccript form steam to here
This commit is contained in:
parent
af77f83133
commit
6b05283a64
@ -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
|
||||
|
@ -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
|
||||
|
@ -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/
|
||||
|
17
steam-native-runtime/steam-native.sh
Normal file
17
steam-native-runtime/steam-native.sh
Normal file
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user