-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathio.github.ungoogled_software.ungoogled_chromium.yaml
More file actions
208 lines (193 loc) · 6.67 KB
/
io.github.ungoogled_software.ungoogled_chromium.yaml
File metadata and controls
208 lines (193 loc) · 6.67 KB
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
app-id: io.github.ungoogled_software.ungoogled_chromium
runtime: org.freedesktop.Platform
runtime-version: '25.08'
sdk: org.freedesktop.Sdk
base: org.chromium.Chromium.BaseApp
base-version: '25.08'
command: chromium
finish-args:
- --require-version=1.8.2
- --device=all
- --share=ipc
- --share=network
- --socket=cups
- --socket=pcsc # FIDO2
- --socket=pulseaudio
- --socket=x11
- --socket=wayland
- --allow=bluetooth # FIDO2 CTAP hybrid transport
- --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.*
- --filesystem=/run/.heim_org.h5l.kcm-socket
- --filesystem=xdg-run/pipewire-0
# To install a PWA application
- --filesystem=home/.local/share/applications:create
- --filesystem=home/.local/share/icons:create
# To allow installing shortcuts on the desktop
- --filesystem=xdg-desktop
# For default download directory to work as expected
- --filesystem=xdg-download
# For MPRIS media cover art
- --filesystem=/tmp
# For imported CA certificates
- --persist=.pki
# For GNOME proxy resolution
- --filesystem=xdg-run/dconf
- --filesystem=~/.config/dconf:ro
- --talk-name=ca.desrt.dconf
- --env=DCONF_USER_CONFIG_DIR=.config/dconf
- --env=GIO_EXTRA_MODULES=/app/lib/gio/modules
- --env=GSETTINGS_BACKEND=dconf
# For KDE proxy resolution (KDE5 only)
- --filesystem=~/.config/kioslaverc
add-extensions:
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
build-options:
append-path: /usr/lib/sdk/llvm22/bin:/usr/lib/sdk/rust-stable/bin
append-ld-library-path: /usr/lib/sdk/rust-stable/lib
env:
# Use LLVM for builds
AR: llvm-ar
CC: clang
CXX: clang++
NM: llvm-nm
RANLIB: llvm-ranlib
STRIP: llvm-strip
# Point bindgen to LLVM's libclang
LIBCLANG_PATH: /usr/lib/sdk/llvm22/lib
# Paths to Node.js and OpenJDK
NODE_HOME: /usr/lib/sdk/node24
JAVA_HOME: /usr/lib/sdk/openjdk
# Allow the use of nightly features with stable Rust compiler
# https://github.com/ungoogled-software/ungoogled-chromium/pull/2696#issuecomment-1918173198
RUSTC_BOOTSTRAP: '1'
# Configure CCACHE for faster builds
CCACHE_NOHASHDIR: 'true'
CCACHE_SLOPPINESS: time_macros,include_file_ctime,include_file_mtime
sdk-extensions:
- org.freedesktop.Sdk.Extension.llvm22
- org.freedesktop.Sdk.Extension.node24
- org.freedesktop.Sdk.Extension.openjdk
- org.freedesktop.Sdk.Extension.rust-stable
modules:
- name: clang-ccache-symlink
buildsystem: simple
build-commands:
- |
set -euxo pipefail
[[ "${CCACHE_DIR}" = "/run/ccache" ]] || exit 0
ln -svf /usr/bin/ccache /run/ccache/bin/clang
ln -svf /usr/bin/ccache /run/ccache/bin/clang++
- name: readelf-symlink
only-arches: [aarch64]
buildsystem: simple
build-commands:
# Chromium expects to find readelf with its full toolprefix on arm64
- ln -sfv /usr/bin/readelf "${FLATPAK_DEST}/bin/aarch64-linux-gnu-readelf"
- name: extensions
buildsystem: simple
build-commands:
- mkdir -pv "${FLATPAK_DEST}"/chromium/{extensions,native-messaging-hosts,policies}
- for dir in native-messaging-hosts policies; do ln -sfv "${FLATPAK_DEST}/chromium/"{"${dir}",extensions}"/${dir}";
done
- touch "${FLATPAK_DEST}/chromium/extensions/no-mount-stamp"
- name: dconf
buildsystem: meson
config-opts:
- -Dbash_completion=false
- -Dman=false
- -Dvapi=false
cleanup:
- /etc
- /include
- ca.desrt.dconf.service
- dconf.service
- dconf-service
- '*.pc'
sources:
- type: archive
url: https://download.gnome.org/sources/dconf/0.49/dconf-0.49.0.tar.xz
sha256: 16a47e49a58156dbb96578e1708325299e4c19eea9be128d5bd12fd0963d6c36
x-checker-data:
type: gnome
name: dconf
stable-only: true
- patches/dconf/_sources.json
- name: kerberos
subdir: src
post-install:
- install -Dm644 ../krb5.conf /app/etc/krb5.conf
sources:
- type: archive
url: https://kerberos.org/dist/krb5/1.22/krb5-1.22.2.tar.gz
sha256: 3243ffbc8ea4d4ac22ddc7dd2a1dc54c57874c40648b60ff97009763554eaf13
x-checker-data:
type: html
url: https://kerberos.org/dist/
version-pattern: Kerberos V5 Release ([\d.-]+) - current release
url-template: https://kerberos.org/dist/krb5/$major.$minor/krb5-$version.tar.gz
- type: file
path: krb5.conf
- name: chromium
buildsystem: simple
build-commands:
- ./build.sh
- ./install.sh
sources:
- type: git
url: https://github.com/ungoogled-software/ungoogled-chromium
commit: d74f54bb069bd1cf2bc52e7d6b61e370ed1fb5d9
dest: uc
- patches/ungoogled-chromium/_sources.json
- type: archive
url: https://commondatastorage.googleapis.com/chromium-browser-official/chromium-147.0.7727.116-lite.tar.xz
sha256: 44be73f82b1b670255b3c58676be08844ddf1bf5727d5fcdf430d214aa8d15bb
- patches/chromium/_sources.json
- patches/chromium-uc/_sources.json
- type: file
path: io.github.ungoogled_software.ungoogled_chromium.desktop
- type: file
path: io.github.ungoogled_software.ungoogled_chromium.metainfo.xml
- type: file
path: chromium.sh
- type: file
path: cobalt.ini
- type: dir
path: build-aux
- type: dir
path: branding/to_copy