forked from flathub/im.riot.Riot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
im.riot.Riot.yaml
114 lines (114 loc) · 3.69 KB
/
im.riot.Riot.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
app-id: im.riot.Riot
base: org.electronjs.Electron2.BaseApp
base-version: '22.08'
runtime: org.freedesktop.Platform
runtime-version: '22.08'
sdk: org.freedesktop.Sdk
command: element
rename-icon: element-desktop
copy-icon: true
separate-locales: false
finish-args:
# Version required to use the document-portal v4
- --require-version=1.7.0
# Required due to being a GUI application
- --socket=x11
# Required to make sure x11 performance is achived on all platforms
# At least that's what the legends tell. it might be worth experimenting
# with dropping this permission.
- --share=ipc
# Required for experimental wayland support
- --socket=wayland
# Required to provide Call functionality
- --socket=pulseaudio
- --device=all
# As a chat application, networking is required
- --share=network
# Required for notifications in various desktop environments
- --talk-name=org.freedesktop.Notifications
- --talk-name=org.kde.StatusNotifierWatcher
# Required to allow screensaver/idle inhibition such as during video calls
- --talk-name=org.freedesktop.ScreenSaver
# Required due to KDE's special way of handling notifications
- --own-name=org.kde.StatusNotifierItem-2-1
# Required for advanced input methods e.g. writing CJK languages
- --talk-name=org.freedesktop.portal.Fcitx
# Required to store access tokens (persistent logins)
- --filesystem=xdg-run/keyring
# Required for experimental wayland support
- --filesystem=xdg-run/pipewire-0
cleanup:
- /include
- /lib/pkgconfig
- /lib/*.la
- /lib/*.a
- /share/pkgconfig
- /share/aclocal
- /share/gtk-doc
- /share/doc
- /share/info
- /share/man
- /man
modules:
- shared-modules/libsecret/libsecret.json
- name: tcl
subdir: unix
build-options:
no-debuginfo: true
cleanup:
- '*'
sources:
- type: git
url: https://github.com/tcltk/tcl.git
tag: core-8-6-11
commit: 17b5b3e0201cdf92d3c125776e1b2dd453f225bd
- name: sqlcipher
rm-configure: true
config-opts:
- --enable-tempstore=yes
- --disable-tcl
build-options:
cflags: -DSQLITE_HAS_CODEC
ldflags: -lcrypto
sources:
- type: archive
url: https://github.com/sqlcipher/sqlcipher/archive/v4.3.0.tar.gz
sha256: fccb37e440ada898902b294d02cde7af9e8706b185d77ed9f6f4d5b18b4c305f
- type: shell
commands:
- cp -p /usr/share/automake-*/config.{sub,guess} .
- type: script
dest-filename: autogen.sh
commands:
- AUTOMAKE="automake --foreign" autoreconf -vfi
- name: riot
buildsystem: simple
build-commands:
- ar x element-desktop_*.deb
- rm element-desktop_*.deb
- tar xf data.tar.xz
- cp -r 'opt/Element' /app/Element
- mkdir -p /app/share/icons/hicolor
- cp -r usr/share/icons/hicolor/* /app/share/icons/hicolor
- chmod -R a-s,go+rX,go-w "/app/Element"
- install element.sh /app/bin/element
- install -Dm644 im.riot.Riot.desktop /app/share/applications/im.riot.Riot.desktop
- install -Dm644 im.riot.Riot.metainfo.xml /app/share/metainfo/im.riot.Riot.metainfo.xml
sources:
- type: file
only-arches:
- x86_64
url: https://packages.element.io/debian/pool/main/e/element-desktop/element-desktop_1.11.8_amd64.deb
sha256: 93485bed0b17a4b0a81fea12bd2273fbe7d32abd4cea6daeded7b40a6567516d
x-checker-data:
type: debian-repo
package-name: element-desktop
root: https://packages.element.io/debian
dist: sid
component: main
- type: file
path: element.sh
- type: file
path: im.riot.Riot.metainfo.xml
- type: file
path: im.riot.Riot.desktop