-
Notifications
You must be signed in to change notification settings - Fork 1
/
io.github.ungoogled_software.ungoogled_chromium.yaml
156 lines (146 loc) · 5.78 KB
/
io.github.ungoogled_software.ungoogled_chromium.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
app-id: io.github.ungoogled_software.ungoogled_chromium
runtime: org.freedesktop.Platform
runtime-version: '24.08'
sdk: org.freedesktop.Sdk
base: org.chromium.Chromium.BaseApp
base-version: '24.08'
command: chromium
finish-args:
- --require-version=1.8.2
- --filesystem=home
- --filesystem=/run/.heim_org.h5l.kcm-socket
- --device=all
- --env=LD_LIBRARY_PATH=/app/chromium/nonfree-codecs/lib
- --share=ipc
- --share=network
- --socket=cups
- --socket=pcsc # FIDO2
- --socket=pulseaudio
- --socket=x11
- --socket=wayland
- --system-talk-name=org.bluez
- --system-talk-name=org.freedesktop.Avahi
- --system-talk-name=org.freedesktop.UPower
- --talk-name=com.canonical.AppMenu.Registrar
- --talk-name=org.freedesktop.FileManager1
- --talk-name=org.freedesktop.Notifications
- --talk-name=org.freedesktop.ScreenSaver
- --talk-name=org.freedesktop.secrets
- --talk-name=org.kde.kwalletd5
- --talk-name=org.kde.kwalletd6
- --talk-name=org.gnome.SessionManager
- --talk-name=org.gnome.ScreenSaver
- --talk-name=org.gnome.Mutter.IdleMonitor.*
- --talk-name=org.cinnamon.ScreenSaver
- --talk-name=org.mate.ScreenSaver
- --talk-name=org.xfce.ScreenSaver
- --own-name=org.mpris.MediaPlayer2.chromium.*
- --persist=.pki # https://github.com/flathub/com.github.Eloston.UngoogledChromium/issues/34
add-extensions:
io.github.ungoogled_software.ungoogled_chromium.Codecs:
directory: chromium/nonfree-codecs
add-ld-path: lib
bundle: true
autodelete: true
io.github.ungoogled_software.ungoogled_chromium.NativeMessagingHost:
version: '1'
directory: chromium/native-messaging-hosts
merge-dirs: native-messaging-hosts
subdirectories: true
no-autodownload: true
autodelete: true
io.github.ungoogled_software.ungoogled_chromium.Extension:
version: '1'
directory: chromium/extensions
merge-dirs: extensions;native-messaging-hosts;policies/managed;policies/recommended
subdirectories: true
no-autodownload: true
autodelete: true
io.github.ungoogled_software.ungoogled_chromium.Policy:
version: '1'
directory: chromium/policies
merge-dirs: policies/managed;policies/recommended
subdirectories: true
no-autodownload: true
autodelete: true
sdk-extensions:
- org.freedesktop.Sdk.Extension.llvm18
- org.freedesktop.Sdk.Extension.node20
- org.freedesktop.Sdk.Extension.openjdk21
modules:
- name: readelf-symlink
only-arches: [aarch64]
buildsystem: simple
build-commands:
# Chromium expects to find readelf with its full toolprefix on arm64
- ln -s /usr/bin/readelf /app/bin/aarch64-linux-gnu-readelf
- name: extensions
buildsystem: simple
build-commands:
- mkdir -p /app/chromium/{extensions,native-messaging-hosts,policies}
- for dir in native-messaging-hosts policies; do ln -s /app/chromium/{$dir,extensions}/$dir;
done
- touch /app/chromium/extensions/no-mount-stamp
- name: materialicons
buildsystem: simple
build-commands:
- mkdir --parents /app/share/fonts/
- install -D -m 0644 MaterialIcons-Regular.ttf /app/share/fonts/
- install -D -m 0644 MaterialIconsOutlined-Regular.otf /app/share/fonts/
- install -D -m 0644 MaterialIconsRound-Regular.otf /app/share/fonts/
- install -D -m 0644 MaterialIconsSharp-Regular.otf /app/share/fonts/
- install -D -m 0644 MaterialIconsTwoTone-Regular.otf /app/share/fonts/
sources:
- type: file
url: https://github.com/google/material-design-icons/raw/f7bd4f25f3764883717c09a1fd867f560c9a9581/font/MaterialIcons-Regular.ttf
sha256: ef149f08bdd2ff09a4e2c8573476b7b0f3fbb15b623954ade59899e7175bedda
- type: file
url: https://github.com/google/material-design-icons/raw/f7bd4f25f3764883717c09a1fd867f560c9a9581/font/MaterialIconsOutlined-Regular.otf
sha256: b63fa9edd75e3c20328e04ad31dcc38ce76411f3f9ea1a1ff87f49e5ba874b05
- type: file
url: https://github.com/google/material-design-icons/raw/f7bd4f25f3764883717c09a1fd867f560c9a9581/font/MaterialIconsRound-Regular.otf
sha256: bad85e5454b6288104ce03806c37323bcd8f145e3094e727860173ac8c91062e
- type: file
url: https://github.com/google/material-design-icons/raw/f7bd4f25f3764883717c09a1fd867f560c9a9581/font/MaterialIconsSharp-Regular.otf
sha256: 095a95043a8574c90770ecdc0af53f8b8b5043a816320107e55e2d237d8ff9de
- type: file
url: https://github.com/google/material-design-icons/raw/f7bd4f25f3764883717c09a1fd867f560c9a9581/font/MaterialIconsTwoTone-Regular.otf
sha256: 03ccf13774af5b5cbbad641dfa33038d4e9f4b7979eedc2c0a15f06bf9eb33cd
- name: rust-nightly
buildsystem: simple
build-options:
strip: false
no-debuginfo: true
cleanup:
- '*'
sources:
- sources/rust-nightly.json
build-commands:
- cd rust && ./install.sh --prefix=/app/lib/sdk/rust-nightly --without=rust-docs
--without=rust-docs-json-preview --disable-ldconfig --verbose
- cd rust-src && ./install.sh --prefix=/app/lib/sdk/rust-nightly --disable-ldconfig
--verbose
- name: chromium
buildsystem: simple
build-options:
prepend-ld-library-path: /app/lib/sdk/rust-nightly/lib
build-commands:
- ./apply-uc-patches.sh
- ./bootstrap.sh
- ./build.sh
- ./install.sh
sources:
- sources/ungoogled-chromium.json
- sources/chromium.json
- patches/chromium/_sources.json
- patches/ffmpeg/_sources.json
# XXX: this patch file is standalone because it's not integrated with the
# patch set tooling used for main Chromium & FFmpeg.
- type: patch
path: patches/Revert-cppgc-Decommit-pooled-pages-by-default.patch
- type: file
path: chromium.sh
- type: file
path: cobalt.ini
- type: dir
path: build-aux