-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathcom.valvesoftware.SteamLink.yml
224 lines (211 loc) · 7.78 KB
/
com.valvesoftware.SteamLink.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
211
212
213
214
215
216
217
218
219
220
221
222
223
224
app-id: com.valvesoftware.SteamLink
runtime: org.freedesktop.Platform
runtime-version: '23.08'
sdk: org.freedesktop.Sdk
command: steamlink
finish_args:
- --device=all
- --env=LD_LIBRARY_PATH=/app/lib
- --env=SDL_GAMECONTROLLERCONFIG_FILE=/var/data/Valve Corporation/SteamLink/controller_map.txt
- --share=ipc
- --share=network
- --socket=fallback-x11
- --socket=pulseaudio
- --socket=wayland
tags:
- proprietary
modules:
- name: qt5-qtbase
sources:
- type: archive
url: https://download.qt.io/archive/qt/5.14/5.14.1/submodules/qtbase-everywhere-src-5.14.1.tar.xz
mirror-urls:
- https://repo.steampowered.com/steamlink/qtbase-everywhere-src-5.14.1.tar.xz
sha256: d9d423a6e7bcf1055c0372fc029f14a6fe67dd62c67b83095cde68b60b762cf7
- type: patch
path: patches/steamlink/qtbase.patch
strip-components: 2
# From org.kde.Sdk
- type: patch
path: patches/org.kde.Sdk/qtbase-avoid-hardcoding-kernel-version.patch
- type: patch
path: patches/org.kde.Sdk/qtbase-use-wayland-on-gnome.patch
# Temporary fix for https://github.com/flatpak/flatpak/issues/3397
- type: patch
path: patches/org.kde.Sdk/qtbase-revert-correct-handling-for-xdg-runtime-dir.patch
- type: patch
path: patches/org.kde.Sdk/qtbase-make-sure-to-correctly-construct-base-platform-theme.patch
- type: patch
path: patches/org.kde.Sdk/open-file-portal-writable.patch
- type: patch
path: patches/backports/Add-missing-limits-include.patch
- type: patch
path: patches/backports/Fix-build-with-GCC-11-include-limits.patch
- type: patch
path: patches/backports/Build-fixes-for-GCC-11.patch
- type: shell
commands:
- mv configure configure.qt
- type: script
commands:
- processed=`sed -e 's/--/-/g ; s/=/ /g' <<< $@`
- ./configure.qt $processed
dest-filename: configure
# Cargo-culted from org.kde.Sdk
build-options:
arch:
x86_64:
config-opts: [-reduce-relocations, -force-debug-info]
aarch64:
config-opts: [-no-reduce-relocations, -optimize-size, -opengl, es2]
config-opts: [-confirm-license, -opensource, -shared, -platform, linux-g++, -optimized-qmake,
-nomake, examples, -nomake, tests, -system-harfbuzz, -system-sqlite, -accessibility,
-dbus-linked, -fontconfig, -glib, -icu, -openssl-linked, -no-pch, -no-rpath,
-no-directfb, -no-linuxfb, -no-kms, -system-proxies, -gtk, -no-use-gold-linker,
-no-cups, -no-directfb, -no-gbm, -no-linuxfb, -no-kms, -archdatadir, /app/lib/]
cleanup:
- /bin
- /doc
- /include
- /lib/*.a
- /lib/*.la
- /lib/*.prl
- /lib/cmake
- /lib/debug
- /lib/mkspecs
- /lib/pkgconfig
- name: qt5-qtsvg
buildsystem: qmake
cleanup:
- /bin
- /include
- /lib/*.a
- /lib/*.la
- /lib/*.prl
- /lib/cmake
- /lib/debug
- /lib/mkspecs
- /lib/pkgconfig
sources:
- type: archive
url: http://download.qt.io/archive/qt/5.14/5.14.1/submodules/qtsvg-everywhere-src-5.14.1.tar.xz
mirror-urls:
- https://repo.steampowered.com/steamlink/qtsvg-everywhere-src-5.14.1.tar.xz
sha256: 8540a57312f815f81a45b891b49959d776727fde17579bb6bf1a537996bc9359
- name: qt5-wayland
buildsystem: qmake
cleanup:
- /bin
- /include
- /lib/*.a
- /lib/*.la
- /lib/*.prl
- /lib/cmake
- /lib/debug
- /lib/mkspecs
- /lib/pkgconfig
sources:
- type: archive
url: http://download.qt.io/archive/qt/5.14/5.14.1/submodules/qtwayland-everywhere-src-5.14.1.tar.xz
mirror-urls:
- https://repo.steampowered.com/steamlink/qtwayland-everywhere-src-5.14.1.tar.xz
sha256: 2a03b9f554e88c5824ef237c814b3dd45844c022e97be0e091f4a502ca4c9520
- type: patch
path: patches/org.kde.Sdk/qtwayland-use-gnome-platform-theme-on-gnome-based-desktops.patch
- type: patch
path: patches/backports/Fix-installing-qtwayland-without-qtquick-or-opengl-s.patch
- type: patch
path: patches/backports/Fix-build-with-libcxx-missing-array-include.patch
- name: extra-cmake-modules
buildsystem: cmake-ninja
cleanup:
- '*'
sources:
- type: archive
url: https://download.kde.org/stable/frameworks/5.78/extra-cmake-modules-5.78.0.tar.xz
mirror-urls:
- https://repo.steampowered.com/steamlink/extra-cmake-modules-5.78.0.tar.xz
sha256: eede1f0c21f24eca56bd71a805fa76500a8c683bf21982cb33f4bba682d012f9
# also available as:
# type: git
# url: https://invent.kde.org/frameworks/extra-cmake-modules.git
# tag: v5.78.0
# commit: 59d4958740a09d43aa5025a1cfe3d7b7d4d725b3
- type: patch
path: patches/backports/python-Bump-maximum-version-for-Python-3-module-generator.patch
- name: kdbusaddons
buildsystem: cmake-ninja
cleanup:
- /bin
- /include
- /lib/cmake
- /lib/mkspecs
config-opts:
- -DENABLE_TESTING=OFF
sources:
- type: archive
url: https://download.kde.org/stable/frameworks/5.78/kdbusaddons-5.78.0.tar.xz
mirror-urls:
- https://repo.steampowered.com/steamlink/kdbusaddons-5.78.0.tar.xz
sha256: 4f91d0b5762243e5e044c087d4faaa584ad5f779fdede138a0048fd4af24d399
# also available as:
# type: git
# url: https://invent.kde.org/frameworks/kdbusaddons.git
# tag: v5.78.0
# commit: e70c696143682bf23509aed4c31d5fc95093d452
# if we delete the l10n (which we don't want anyway) then it drops the
# dependency on QtLinguist
- type: shell
commands:
- rm -fr po
- name: steamlink-binary
sources:
- type: archive
url: https://repo.steampowered.com/steamlink/1.3.15.284/steamlink-1.3.15.284.tgz
sha256: 0f2218db5ac033500caa8d9148c7b257af65d4063d0051a4aa6c4e9126542ad3
strip-components: 1
x-checker-data:
is-main-source: true
type: html
url: https://repo.steampowered.com/steamlink/latest/
version-pattern: href="steamlink-(\d[\d.-]*)\.tgz"
url-template: https://repo.steampowered.com/steamlink/$version/steamlink-$version.tgz
- type: file
path: LICENSE.txt
dest-filename: LICENSE.txt-from-git
- type: file
path: ThirdPartyLegalNotices.css
dest-filename: ThirdPartyLegalNotices.css-from-git
- type: file
path: ThirdPartyLegalNotices.html
dest-filename: ThirdPartyLegalNotices.html-from-git
buildsystem: simple
build-commands:
- install bin/steamlink /app/bin
- cp -a lib/* /app/lib
- cp -a *.txt *.css *.html /app
# Make sure the license information in the packaging repository is
# in sync with what's in the binary releases
- cmp LICENSE.txt LICENSE.txt-from-git
- cmp ThirdPartyLegalNotices.css ThirdPartyLegalNotices.css-from-git
- cmp ThirdPartyLegalNotices.html ThirdPartyLegalNotices.html-from-git
- name: packaging
sources:
- type: file
path: com.valvesoftware.SteamLink.metainfo.xml
- type: file
path: com.valvesoftware.SteamLink.desktop
- type: dir
path: icons
buildsystem: simple
build-commands:
- install -d /app/share/applications/
- install -d /app/share/metainfo/
- install -D -m644 com.valvesoftware.SteamLink.metainfo.xml /app/share/metainfo/
- install -D -m644 com.valvesoftware.SteamLink.desktop /app/share/applications/
- |
set -eu; for size in 256; do
src="$size/steamlink.png"
dst="/app/share/icons/hicolor/${size}x${size}/apps/${FLATPAK_ID}.png"
install -D -m644 "$src" "$dst"
done