forked from flathub/com.brave.Browser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcom.brave.Browser.yaml
154 lines (146 loc) · 4.69 KB
/
com.brave.Browser.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
app-id: com.brave.Browser
runtime: org.freedesktop.Platform
runtime-version: '21.08'
sdk: org.freedesktop.Sdk
command: brave
separate-locales: false
build-options:
no-debuginfo: true
finish-args:
- --device=all
- --env=GTK_PATH=/app/lib/gtkmodules
- --share=ipc
- --share=network
- --socket=cups
- --socket=pulseaudio
- --socket=x11
- --socket=wayland
- --require-version=1.8.2
- --system-talk-name=org.freedesktop.UPower
- --talk-name=org.freedesktop.FileManager1
- --talk-name=org.freedesktop.Notifications
- --talk-name=org.freedesktop.secrets
- --talk-name=org.gnome.SessionManager
- --system-talk-name=org.freedesktop.Avahi
- --own-name=org.mpris.MediaPlayer2.chromium.*
- --filesystem=host-etc
- --filesystem=xdg-run/pipewire-0
- --filesystem=xdg-documents
- --filesystem=xdg-download
- --filesystem=xdg-music
- --filesystem=xdg-videos
- --filesystem=xdg-desktop
- --filesystem=/run/.heim_org.h5l.kcm-socket
- --persist=.pki
modules:
- libsecret.json
- name: libcups
make-args: [libs]
no-make-install: true
post-install:
- make install-headers install-libs
cleanup:
- /include
sources:
- type: git
url: https://github.com/OpenPrinting/cups.git
tag: v2.4.0
commit: 7b114a26fe8bbe3c280d3ac743d30e5cb8f6ef93
- name: gtk-cups-backend
buildsystem: meson
make-args: [modules/printbackends/libprintbackend-cups.so]
no-make-install: true
post-install:
- install -Dm 755 modules/printbackends/libprintbackend-cups.so -t /app/lib/gtkmodules/3.0.0/printbackends/
sources:
- type: git
url: https://gitlab.gnome.org/GNOME/gtk.git
tag: 3.24.23
# From https://gitlab.gnome.org/GNOME/gnome-build-meta/-/blob/master/files/gtk3-werror.patch
- type: patch
path: gtk3-werror.patch
- name: gtk-settings
buildsystem: simple
build-commands:
- install -Dm 644 gtk-settings.ini /app/etc/xdg/gtk-3.0/settings.ini
sources:
- type: file
path: gtk-settings.ini
- name: zypak
sources:
- type: git
url: https://github.com/refi64/zypak
tag: v2021.09.1
commit: e09f37ca4ff09827434deba11f9b1f9e1c42dbaf
x-checker-data:
type: git
tag-pattern: ^v([\d.]+)$
- name: flextop
buildsystem: meson
sources:
- type: git
url: https://github.com/refi64/flextop
tag: v2021.07.1
commit: 9f66dac84388f520ecab5ac4fa60df6343b7db5b
x-checker-data:
type: git
tag-pattern: ^v([\d.]+)$
- name: cobalt
buildsystem: meson
sources:
- type: git
url: https://github.com/refi64/cobalt
tag: v2021.11.1
commit: 8a49246a97fcb989b370c20b204324862d79541f
x-checker-data:
type: git
tag-pattern: ^v([\d.]+)$
- name: krb5
subdir: src
sources:
- type: archive
url: https://kerberos.org/dist/krb5/1.19/krb5-1.19.1.tar.gz
sha256: fa16f87eb7e3ec3586143c800d7eaff98b5e0dcdf0772af7d98612e49dbeb20b
- type: file
path: krb5.conf
post-install:
- install -Dm644 ../krb5.conf /app/etc/krb5.conf
- name: brave
buildsystem: simple
build-commands:
- mkdir -p /app/brave
- bsdtar -xf brave.zip -C /app/brave
- install -Dm 644 brave-browser.desktop /app/share/applications/com.brave.Browser.desktop
- install -Dm 644 brave_lion.svg /app/share/icons/hicolor/scalable/apps/com.brave.Browser.svg
- install -Dm 755 brave.sh /app/bin/brave
- install -Dm 644 -t /app/etc cobalt.ini
- install -Dm 644 -t /app/share/flatpak-brave flatpak_policy.json
- install -Dm 644 -t /app/share/metainfo com.brave.Browser.metainfo.xml
sources:
- type: file
url: https://github.com/brave/brave-browser/releases/download/v1.34.81/brave-browser-1.34.81-linux-amd64.zip
sha256: fcc92e7f3372937b2a0547124bf40d8fb95138f1bfe83612918aa2124dabf9b0
dest-filename: brave.zip
only-arches: [x86_64]
x-checker-data:
type: html
url: https://brave-browser-downloads.s3.brave.com/latest/release.version
version-pattern: ([\d\.-]+)
url-template: https://github.com/brave/brave-browser/releases/download/v$version/brave-browser-$version-linux-amd64.zip
is-main-source: true
- type: script
dest-filename: brave.sh
commands:
- exec cobalt "$@"
- type: file
path: cobalt.ini
- type: file
path: com.brave.Browser.metainfo.xml
- type: file
path: brave_lion.svg
- type: file
path: flatpak_policy.json
- type: file
path: brave-browser.desktop
- type: file
path: brave.sh