-
Notifications
You must be signed in to change notification settings - Fork 13
/
org.swaywm.sway.yaml
218 lines (218 loc) · 8.36 KB
/
org.swaywm.sway.yaml
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
#
# how to use?
#
# to test applications with this sway package set WAYLAND_DISPLAY correctly
# usually it will be WAYLAND_DISPLAY=$XDG_RUNTIME_DIR/app/org.swaywm.sway/wayland-1
# for example:
# $ env WAYLAND_DISPLAY=$XDG_RUNTIME_DIR/app/org.swaywm.sway/wayland-1 \
# alacritty
#
# to use with other flatpak app you need also to give access to $XDG_RUNTIME_DIR/app/org.swaywm.sway
# for example:
# $ flatpak run \
# --filesystem=xdg-run/app/org.swaywm.sway \
# --env=WAYLAND_DISPLAY=$XDG_RUNTIME_DIR/app/org.swaywm.sway/wayland-1 \
# org.gnome.gedit
#
app-id: org.swaywm.sway
runtime: org.freedesktop.Platform
runtime-version: '21.08'
sdk: org.freedesktop.Sdk
command: sway.sh
finish-args:
- --device=dri
- --socket=wayland
cleanup:
- /include
- /lib/pkgconfig
- '*.a'
- '*.la'
modules:
- name: sway
build-options:
env:
# workaround to use the updated meson version
- PYTHONPATH=/app/lib/python3.9/site-packages
buildsystem: meson
config-opts:
- -Dwerror=false
- -Ddefault-wallpaper=true
- -Dzsh-completions=false
- -Dbash-completions=false
- -Dfish-completions=false
- -Dxwayland=disabled
- -Dtray=disabled
- -Dgdk-pixbuf=enabled
- -Dman-pages=disabled
sources:
- type: git
url: https://github.com/swaywm/sway.git
tag: '1.7'
# input_method_v2 popups: https://github.com/swaywm/sway/pull/5890
- type: patch
path: 0001-text_input-Implement-input-method-popups.patch
modules:
- ../shared-modules/json-c/json-c.json
- name: wlroots
build-options:
env:
# workaround to use the updated meson version
- PYTHONPATH=/app/lib/python3.9/site-packages
buildsystem: meson
config-opts:
- --libdir=lib
- -Dxwayland=disabled
- -Dexamples=false
sources:
- type: git
url: https://gitlab.freedesktop.org/wlroots/wlroots.git
tag: 0.15.0
modules:
- ../shared-modules/meson/meson.json
# this doesn't work, wlroots hardcodes /tmp/.X11-unix and flatpak covers it with tmpfs
# so we need to proxy the x11 socket that is created in the sandbox
#- name: xorg-xwayland
# buildsystem: meson
# config-opts:
# - -Dipv6=false
# - -Dxvfb=false
# - -Dxdmcp=false
# - -Dxdm-auth-1=false
# - -Dsecure-rpc=false
# - -Ddri3=true
# sources:
# - type: archive
# url: https://xorg.freedesktop.org/archive/individual/xserver/xwayland-21.1.1.tar.xz
# sha256: 31f261ce51bbee76a6ca3ec02aa367ffa2b5efa2b98412df57ccefd7a19003ce
# modules:
# - name: libxfont2
# sources:
# - type: archive
# url: https://xorg.freedesktop.org/archive/individual/lib/libXfont2-2.0.4.tar.bz2
# sha256: 6d151b3368e5035efede4b6264c0fdc6662c1c99dbc2de425e3480cababc69e6
# modules:
# - name: xtrans
# sources:
# - type: archive
# url: https://xorg.freedesktop.org/archive/individual/lib/xtrans-1.4.0.tar.bz2
# sha256: 377c4491593c417946efcd2c7600d1e62639f7a8bbca391887e2c4679807d773
# - name: xorgproto
# sources:
# - type: archive
# url: https://xorg.freedesktop.org/archive/individual/proto/xorgproto-2021.3.tar.bz2
# sha256: 4c732b14fc7c7db64306374d9e8386d6172edbb93f587614df1938b9d9b9d737
# - name: xtrans
# sources:
# - type: archive
# url: https://xorg.freedesktop.org/archive/individual/lib/libfontenc-1.1.4.tar.bz2
# sha256: 2cfcce810ddd48f2e5dc658d28c1808e86dcf303eaff16728b9aa3dbc0092079
# - name: xorg-font-util
# sources:
# - type: archive
# url: https://xorg.freedesktop.org/archive/individual/font/font-util-1.3.2.tar.bz2
# sha256: 3ad880444123ac06a7238546fa38a2a6ad7f7e0cc3614de7e103863616522282
# freedesktop 21.08's libdrm is too old
- name: libdrm
buildsystem: meson
config-opts:
- -Dlibkms=false
- -Dintel=false
- -Dradeon=false
- -Damdgpu=false
- -Dnouveau=false
- -Dvmwgfx=false
- -Dcairo-tests=false
- -Dman-pages=false
- -Dvalgrind=false
- -Dudev=false
sources:
- type: archive
url: https://dri.freedesktop.org/libdrm/libdrm-2.4.109.tar.xz
sha256: 629352e08c1fe84862ca046598d8a08ce14d26ab25ee1f4704f993d074cb7f26
x-checker-data:
type: anitya
project-id: 1596
stable-only: true
url-template: https://dri.freedesktop.org/libdrm/libdrm-$version.tar.xz
- name: libinput
buildsystem: meson
config-opts:
- -Dlibwacom=false
- -Ddebug-gui=false
- -Dtests=false
- -Ddocumentation=false
- -Dzshcompletiondir=no
- --libexec=lib
sources:
- type: archive
url: https://freedesktop.org/software/libinput/libinput-1.19.3.tar.xz
sha256: 3cae78ccde19d7d0f387e58bc734d4d17ab5f6426f54a9e8b728c90b17baa068
x-checker-data:
type: anitya
project-id: 5781
stable-only: true
url-template: https://freedesktop.org/software/libinput/libinput-$version.tar.xz
cleanup:
- /bin
- /etc
- /lib/libinput
- /lib/udev
- /share/libinput
- /share/man
modules:
- name: mtdev
config-opts:
- --disable-static
sources:
- type: archive
url: https://bitmath.org/code/mtdev/mtdev-1.1.6.tar.bz2
sha256: 15d7b28da8ac71d8bc8c9287c2045fd174267bc740bec10cfda332dc1204e0e0
x-checker-data:
type: anitya
project-id: 8868
stable-only: true
url-template: https://bitmath.org/code/mtdev/mtdev-$version.tar.bz2
cleanup:
- /bin
- ../shared-modules/libevdev/libevdev.json
- name: libseat
buildsystem: meson
config-opts:
- -Dserver=disabled
- -Dman-pages=disabled
sources:
- type: archive
url: https://git.sr.ht/~kennylevinsen/seatd/archive/0.6.3.tar.gz
sha256: 5226850c163b485aebe71da0d3f4941761637e146a5c9393cb40c52617ad84a8
x-checker-data:
type: anitya
project-id: 234932
stable-only: true
url-template: https://git.sr.ht/~kennylevinsen/seatd/archive/$version.tar.gz
- name: wayland
buildsystem: meson
config-opts:
- -Dtests=false
- -Ddocumentation=false
sources:
- type: archive
url: https://wayland.freedesktop.org/releases/wayland-1.20.0.tar.xz
sha256: b8a034154c7059772e0fdbd27dbfcda6c732df29cae56a82274f6ec5d7cd8725
x-checker-data:
type: anitya
project-id: 10061
stable-only: true
url-template: https://wayland.freedesktop.org/releases/wayland-$version.tar.xz
- name: package
buildsystem: simple
build-commands:
- install -Dm755 sway.sh -t /app/bin/
sources:
- type: script
dest-filename: sway.sh
commands:
- |
export WAYLAND_DISPLAY=$XDG_RUNTIME_DIR/$WAYLAND_DISPLAY
export SWAYSOCK=$XDG_RUNTIME_DIR/app/org.swaywm.sway/sway-ipc.sock
export XDG_RUNTIME_DIR=$XDG_RUNTIME_DIR/app/org.swaywm.sway
exec sway "$@"