Newer
Older
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
---
# Copyright © 2013-2016 Valve Corporation
# Copyright © 2017-2020 Collabora Ltd.
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of these scripts and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject to
# the following conditions:
#
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
# CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
id_prefix: com.valvesoftware.SteamRuntime
add_packages_multiarch:
- steamrt-container-host-compat
- steamrt-libs
add_packages:
- steamrt-container
post_script: |
set -eux
ln -s /usr/libexec/flatpak-xdg-utils/xdg-email /usr/bin/
ln -s /usr/libexec/flatpak-xdg-utils/xdg-open /usr/bin/
if [ -e /usr/share/i18n/locales/en_US ]; then
echo "en_US.UTF-8 UTF-8" > /etc/locale.gen
localedef -v -i en_US -c -f UTF-8 en_US.UTF-8 || :
test -e /usr/lib/locale/locale-archive
fi
test -d /usr/lib/gconv
test -d /usr/lib/locale
test -d /usr/share/i18n
test -d /usr/share/libdrm
if dpkg-query -W steamrt-container-host-compat:amd64; then
test -d /usr/lib64
test -d /usr/lib64/gconv
test -d /usr/lib64/locale
test -d /usr/lib/x86_64-linux-gnu/gconv
# Arch Linux uses a non-standard ELF interpreter for some binaries in
# the glibc package. We can't create this from
# steamrt-container-host-compat, because that breaks dpkg-shlibdeps.
ln -fns /lib64/ld-linux-x86-64.so.2 /usr/lib/ld-linux-x86-64.so.2
if ! [ -e /usr/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2 ] \
&& ! [ -L /usr/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2 ] \
; then
install -d /usr/lib/x86_64-linux-gnu
ln -s /lib/x86_64-linux-gnu/ld-linux-x86-64.so.2 \
/usr/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2
fi
test -e /usr/x86_64-pc-linux-gnu/lib/ld-linux-x86-64.so.2
fi
if dpkg-query -W steamrt-container-host-compat:i386; then
test -d /usr/lib32
test -d /usr/lib32/gconv
test -d /usr/lib32/locale
test -d /usr/lib/i386-linux-gnu/gconv
if ! [ -e /usr/lib/i386-linux-gnu/ld-linux.so.2 ] \
&& ! [ -L /usr/lib/i386-linux-gnu/ld-linux.so.2 ] \
; then
install -d /usr/lib/i386-linux-gnu
ln -s /lib/i386-linux-gnu/ld-linux.so.2 \
/usr/lib/i386-linux-gnu/ld-linux.so.2
fi
test -e /usr/i686-pc-linux-gnu/lib/ld-linux.so.2
fi
sdk:
add_packages_multiarch:
- steamrt-libdebug:
debug_symbols: true
- steamrt-libdevel
add_packages:
- steamrt-dev
- steamrt-libdebug-non-multiarch:
debug_symbols: true
post_script: |
set -eux
ln -sv busybox /bin/dos2unix
ln -sv busybox /bin/ifconfig
ln -sv busybox /bin/ip
ln -sv busybox /bin/nc
ln -sv busybox /bin/ping
ln -sv busybox /bin/ping6
ln -sv busybox /bin/route
ln -sv busybox /bin/telnet
ln -sv busybox /bin/traceroute
ln -sv busybox /bin/traceroute6
ln -sv busybox /bin/unix2dos
ln -sv busybox /bin/vi
ln -sv busybox /bin/xxd
...