forked from flathub/com.valvesoftware.Steam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
com.valvesoftware.Steam.yml
210 lines (191 loc) · 6.44 KB
/
com.valvesoftware.Steam.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
app-id: com.valvesoftware.Steam
runtime: org.freedesktop.Platform
runtime-version: "20.08"
sdk: org.freedesktop.Sdk
command: steam-wrapper
separate-locales: false
rename-icon: steam
rename-desktop-file: steam.desktop
tags:
- proprietary
sdk-extensions:
- org.freedesktop.Sdk.Compat.i386
- org.freedesktop.Sdk.Extension.toolchain-i386
finish-args:
- --share=ipc
- --socket=wayland
- --socket=x11
- --socket=pulseaudio
- --share=network
- --talk-name=org.gnome.SettingsDaemon.MediaKeys
# Steam in -steamos mode uses Network Manager for network settings, e.g.
# connecting to wifi and so on.
# In normal mode, it probably just gets info about current connection status.
- --system-talk-name=org.freedesktop.NetworkManager
- --talk-name=org.kde.StatusNotifierWatcher
- --system-talk-name=org.freedesktop.UPower
- --talk-name=org.freedesktop.ScreenSaver
- --talk-name=org.freedesktop.PowerManagement
- --talk-name=org.freedesktop.Notifications
- --filesystem=xdg-music:ro
- --filesystem=xdg-pictures:ro
- --filesystem=xdg-run/app/com.discordapp.Discord:create
- --device=all
- --allow=multiarch
- --allow=devel
- --allow=bluetooth
- --persist=.
- --env=TZ=
- --env=LC_NUMERIC=C
- --env=LC_COLLATE=C
- --env=ALSA_CONFIG_PATH=
- --env=MESA_GLSL_CACHE_DIR=
- --env=STEAM_RUNTIME_PREFER_HOST_LIBRARIES=
- --env=STEAM_RUNTIME=
- --env=SDL_VIDEODRIVER=
- --env=DBUS_FATAL_WARNINGS=0
- --env=SSL_CERT_DIR=/etc/ssl/certs
- --env=STEAM_EXTRA_COMPAT_TOOLS_PATHS=/app/share/steam/compatibilitytools.d
- --env=PROTON_DEBUG_DIR=/var/tmp
- --env=XDG_CONFIG_DIRS=/etc/xdg:/usr/lib/x86_64-linux-gnu/GL:/usr/lib/i386-linux-gnu/GL
- --require-version=1.0.0
add-extensions:
org.freedesktop.Platform.Compat.i386:
directory: lib/i386-linux-gnu
version: "20.08"
org.freedesktop.Platform.Compat.i386.Debug:
directory: lib/debug/lib/i386-linux-gnu
version: "20.08"
no-autodownload: true
org.freedesktop.Platform.GL32:
directory: lib/i386-linux-gnu/GL
version: '1.4'
versions: "20.08;1.4"
subdirectories: true
no-autodownload: true
autodelete: false
add-ld-path: lib
merge-dirs: vulkan/icd.d;glvnd/egl_vendor.d;OpenCL/vendors;lib/dri;lib/d3d;vulkan/explicit_layer.d
download-if: active-gl-driver
enable-if: active-gl-driver
org.freedesktop.Platform.VAAPI.Intel.i386:
directory: lib/i386-linux-gnu/dri/intel-vaapi-driver
version: "20.08"
versions: "20.08"
subdirectories: true
no-autodownload: true
autodelete: false
add-ld-path: lib
download-if: active-gl-driver
enable-if: active-gl-driver
com.valvesoftware.Steam.CompatibilityTool:
subdirectories: true
directory: share/steam/compatibilitytools.d
no-autodownload: true
autodelete: true
com.valvesoftware.Steam.Utility:
subdirectories: true
directory: utils
add-ld-path: lib
merge-dirs: share/vulkan/explicit_layer.d;share/vulkan/implicit_layer.d;
no-autodownload: true
autodelete: true
cleanup:
- /lib/*.a
- /lib/*.la
- /lib32/*.a
- /lib32/*.la
- /share/doc
- /share/gtk-doc
- /share/man
cleanup-commands:
- python3 -m compileall --invalidation-mode=unchecked-hash /app
modules:
- modules.yml
- modules-32bit.yml
- python-dependencies.json
- name: steam_wrapper
buildsystem: simple
sources:
- type: dir
path: steam_wrapper
build-commands:
- python3 -mpip install . --prefix=/app --no-index --find-links .
modules:
- name: steam
buildsystem: simple
build-commands:
- |
set -e
sed -i s:Exec=steam:Exec=/app/bin/steam-wrapper: steam.desktop
sed -i s:/usr/bin/steam:/app/bin/steam-wrapper: steam.desktop
desktop-file-edit --set-key=StartupWMClass --set-value=Steam steam.desktop
sed -i s:/usr/lib/:/app/lib/: steam
PREFIX=/app make install
ln -sf /bin/true /app/bin/steamdeps
cp /usr/bin/cmp /app/bin
install -Dm644 -t /app/share/metainfo com.valvesoftware.Steam.metainfo.xml
ln -sfr $(readlink -f /app/share/applications/steam.desktop) /app/share/applications/steam.desktop
sources:
- type: archive
url: http://repo.steampowered.com/steam/archive/precise/steam_1.0.0.66.tar.gz
sha256: 738c855f73168d0bce0b9297c75d9dbf56419b722264d8ca3f7737657754c710
x-checker-data:
type: html
url: http://repo.steampowered.com/steam/archive/precise/
version-pattern: steam_([\d.-]+).tar.gz
url-pattern: (steam_[\d.-]+.tar.gz)
size: 3014360
- type: file
path: com.valvesoftware.Steam.metainfo.xml
- name: steamcmd
build-options:
strip: false
no-debuginfo: true
buildsystem: simple
build-commands:
- |
set -e
cp -ax steamcmd /app/
ln -s steamcmd-wrapper /app/bin/steamcmd
install -Dm644 com.valvesoftware.Steam.cmd.metainfo.xml -t /app/share/metainfo
sources:
- type: archive
strip-components: 0
dest: steamcmd
url: https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz
sha256: cebf0046bfd08cf45da6bc094ae47aa39ebf4155e5ede41373b579b8f1071e7c
- type: file
path: com.valvesoftware.Steam.cmd.metainfo.xml
- name: lsb-release-compat
buildsystem: simple
build-commands:
- make install PREFIX=/app
sources:
- type: git
url: https://gitlab.com/nanonyme/lsb-release-compat.git
commit: 5751a93f4cd3885a9c3c92aa86026255851ad670
- name: platform-bootstrap
buildsystem: simple
build-commands:
- |
set -e
mkdir -p /app/bin
mkdir -p /app/lib/i386-linux-gnu
mkdir -p /app/lib/debug/lib/i386-linux-gnu
mkdir -p /app/lib/i386-linux-gnu/GL
mkdir -p /app/lib/i386-linux-gnu/dri/intel-vaapi-driver
cp /usr/bin/addr2line /app/bin/
cp /usr/lib/x86_64-linux-gnu/libbfd-*.so /app/lib/
install -Dm644 -t /app/etc ld.so.conf
shared-library-guard-config-converter blocklist/* --outfile /app/etc/freedesktop-sdk.ld.so.blockedlist
mkdir -p /app/share/steam/compatibilitytools.d
mkdir -p /app/utils /app/share/vulkan
ln -srv /app/{utils/,}share/vulkan/explicit_layer.d
ln -srv /app/{utils/,}share/vulkan/implicit_layer.d
mkdir -p /app/links/lib
ln -s /app/lib /app/links/lib/x86_64-linux-gnu
ln -s /app/lib32 /app/links/lib/i386-linux-gnu
sources:
- type: dir
path: resources