forked from flathub/org.qutebrowser.qutebrowser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathorg.qutebrowser.qutebrowser.yml
285 lines (273 loc) · 12.4 KB
/
org.qutebrowser.qutebrowser.yml
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
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
app-id: org.qutebrowser.qutebrowser
runtime: org.kde.Platform
runtime-version: 5.15-23.08
sdk: org.kde.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.rust-stable
base: com.riverbankcomputing.PyQt.BaseApp
#base: io.qt.qtwebengine.BaseApp # pyqt-shared-module
base-version: 5.15-23.08
build-options:
append-path: /usr/lib/sdk/rust-stable/bin
env:
# - ENABLED_PYQT_BINDINGS=QtCore:QtDBus:QtGui:QtNetwork:QtOpenGL:QtPrintSupport:QtQml:QtQuick:QtSql:QtTest:QtWebChannel:QtWidgets
- CARGO_VARS= HOME=${FLATPAK_BUILDER_BUILDDIR} CARGO_HOME=${FLATPAK_BUILDER_BUILDDIR}/cargo
RUSTC_WRAPPER=$(if [ "$CCACHE_DIR" == "/run/ccache" ]; then echo ${SCCACHE_BIN};
fi;)
- SCCACHE_BIN=/app/bin/sccache
- SCCACHE_DIR=/run/ccache/sccache
- SCCACHE_CONF=/run/ccache/sccache/config
command: qutebrowser
rename-icon: qutebrowser
add-extensions:
org.freedesktop.Platform.ffmpeg-full:
directory: lib/ffmpeg
version: '23.08'
add-ld-path: .
no-autodownload: true
org.qutebrowser.qutebrowser.Userscripts:
directory: userscripts
version: stable
add-ld-path: lib
no-autodownload: true
finish-args:
- --device=dri
- --env=PATH=/app/bin:/app/userscripts/bin:/usr/bin:/app/userscripts/share/perl6/site/bin:/var/data/bin:/var/data/python/bin
- --env=PYTHONPATH=/app/userscripts/lib/python/site-packages
- --env=PYTHONUSERBASE=/var/data/python
- --env=QTWEBENGINEPROCESS_PATH=/app/bin/QtWebEngineProcess
- --filesystem=xdg-download
- --filesystem=xdg-music
- --filesystem=xdg-pictures
- --filesystem=xdg-videos
- --filesystem=xdg-run/pipewire-0:ro
- --filesystem=/run/.heim_org.h5l.kcm-socket
- --own-name=org.mpris.MediaPlayer2.qutebrowser.*
- --share=ipc
- --share=network
- --socket=fallback-x11
- --socket=pulseaudio
- --socket=wayland
- --system-talk-name=org.freedesktop.UPower
- --talk-name=org.freedesktop.Notifications
- --talk-name=org.freedesktop.ScreenSaver
- --talk-name=org.freedesktop.secrets
- --talk-name=org.kde.StatusNotifierWatcher
cleanup:
- /include
- /lib/pkgconfig
- '*.a'
- '*.la'
cleanup-commands:
- /app/cleanup-BaseApp.sh
# avoid dependency of python modules from extension on module from the app
- rm -vrf ${FLATPAK_DEST}/lib/python*/site-packages/packaging
- rm -vrf ${FLATPAK_DEST}/lib/python*/site-packages/packaging-*.dist-info
- rm -vrf ${FLATPAK_DEST}/lib/python*/site-packages/ply
- rm -vrf ${FLATPAK_DEST}/lib/python*/site-packages/ply-*.dist-info
- rm -vrf ${FLATPAK_DEST}/lib/python*/site-packages/pyparsing
- rm -vrf ${FLATPAK_DEST}/lib/python*/site-packages/pyparsing-*.dist-info
- rm -vrf ${FLATPAK_DEST}/lib/python*/site-packages/toml
- rm -vrf ${FLATPAK_DEST}/lib/python*/site-packages/toml-*.dist-info
- rm -vrf ${FLATPAK_DEST}/lib/python*/site-packages/tomli
- rm -vrf ${FLATPAK_DEST}/lib/python*/site-packages/tomli-*.dist-info
- rm -vrf ${FLATPAK_DEST}/lib/python*/site-packages/typing_extensions-*.dist-info
- rm -vrf ${FLATPAK_DEST}/lib/python*/site-packages/typing_extensions.py
modules:
- name: qutebrowser
buildsystem: simple
build-commands:
# avoid installing as zip file
- sed -i '/zip_safe=/ s/True/False/' setup.py
- python3 scripts/asciidoc2html.py
- make --file misc/Makefile install PREFIX=${FLATPAK_DEST}
- install -dm755 ${FLATPAK_DEST}/{lib/ffmpeg,userscripts}
- sed -i '/^Exec=qutebrowser/ s@=@='${FLATPAK_DEST}'/bin/@' ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop
run-tests: false
test-commands:
- |
export QTWEBENGINEPROCESS_PATH=${FLATPAK_DEST}/bin/QtWebEngineProcess
export PYTHONPATH=.
# Flathub CI has XDG_RUNTIME_DIR mode bits set to 0755
if [ "$(stat --format=%04a $XDG_RUNTIME_DIR)" = "0755" ]; then
chmod -v 0700 $XDG_RUNTIME_DIR
fi
# verbose output: -v -s --no-qt-log
# workaround for Flathub CI's inability to detect job failure and stopping it
pytest --qute-backend=webengine || true
sources:
- type: git
url: https://github.com/qutebrowser/qutebrowser.git
tag: v3.2.1
commit: 8cb4556245fb1f63f06f5607bcd332e9a97e9ba1
x-checker-data:
is-main-source: true
type: json
url: https://api.github.com/repos/qutebrowser/qutebrowser/releases/latest
tag-query: .tag_name
version-query: $tag
timestamp-query: .published_at
- type: patch
path: qutebrowser-appdata-wiki.patch
modules:
- name: sccache-bin
buildsystem: simple
build-commands:
- install -Dm755 sccache -t ${FLATPAK_DEST}/bin/
sources:
- type: archive
only-arches:
- x86_64
url: https://github.com/mozilla/sccache/releases/download/v0.8.1/sccache-v0.8.1-x86_64-unknown-linux-musl.tar.gz
sha256: e0ee621fb16b6940666cd770b091c62cadafd3e062dd12e3a49d9caaff3b795f
x-checker-data:
type: anitya
project-id: 227267
url-template: https://github.com/mozilla/sccache/releases/download/v$version/sccache-v$version-x86_64-unknown-linux-musl.tar.gz
- type: archive
only-arches:
- aarch64
url: https://github.com/mozilla/sccache/releases/download/v0.8.1/sccache-v0.8.1-aarch64-unknown-linux-musl.tar.gz
sha256: 452cef732b24415493a7c6bca6e13536eb9464593fa87c753b6b7cb4733e9c50
# x-checker-data:
# type: anitya
# project-id: 227267
# url-template: https://github.com/mozilla/sccache/releases/download/v$version/sccache-v$version-aarch64-unknown-linux-musl.tar.gz
cleanup:
- '*'
#- pyqt-shared-module.json
- name: asciidoc
buildsystem: simple
build-commands:
- python setup.py build
- python setup.py install --prefix=${FLATPAK_DEST} --root=/ --optimize=1
- install -Dm644 asciidoc/resources/docbook-xsl/*.xsl -t ${FLATPAK_DEST}/lib/python/site-packages/asciidoc/resources/docbook-xsl/
sources:
- type: archive
url: https://github.com/asciidoc-py/asciidoc-py/archive/10.2.0/asciidoc-10.2.0.tar.gz
sha256: 684ea53c1f5b71d6d1ac6086bbc96906b1f709ecc7ab536615b0f0c9e1baa3cc
x-checker-data:
type: html
url: https://asciidoc-py.github.io/
version-pattern: AsciiDoc ([\d\.-]+) Released
url-template: https://github.com/asciidoc-py/asciidoc-py/archive/$version/asciidoc-$version.tar.gz
cleanup:
- '*'
- name: python-jinja
buildsystem: simple
build-commands:
- pip3 install --verbose --exists-action=i --no-index --find-links=file://${PWD}
--prefix=${FLATPAK_DEST} Jinja2 --no-build-isolation
sources:
- type: file
url: https://files.pythonhosted.org/packages/7a/ff/75c28576a1d900e87eb6335b063fab47a8ef3c8b4d88524c4bf78f670cce/Jinja2-3.1.2.tar.gz
sha256: 31351a702a408a9e7595a8fc6150fc3f43bb6bf7e319770cbc0db9df9437e852
x-checker-data:
type: pypi
name: Jinja2
modules:
- name: python-markupsafe
buildsystem: simple
build-commands:
- pip3 install --verbose --exists-action=i --no-index --find-links=file://${PWD}
--prefix=${FLATPAK_DEST} MarkupSafe --no-build-isolation
sources:
- type: file
url: https://files.pythonhosted.org/packages/87/5b/aae44c6655f3801e81aa3eef09dbbf012431987ba564d7231722f68df02d/MarkupSafe-2.1.5.tar.gz
sha256: d283d37a890ba4c1ae73ffadf8046435c76e7bc2247bbb63c00bd1a709c6544b
x-checker-data:
type: pypi
name: MarkupSafe
- name: python-pygments
# available in the sdk but not in the runtime
# required by format_json userscript, and optional for viewing source with ':view-source --pygments',
buildsystem: simple
build-commands:
- pip3 install --ignore-installed --exists-action=i --no-index --find-links=file://$PWD
--prefix=$FLATPAK_DEST Pygments --no-build-isolation
sources:
- type: file
url: https://files.pythonhosted.org/packages/da/6a/c427c06913204e24de28de5300d3f0e809933f376e0b7df95194b2bb3f71/Pygments-2.14.0.tar.gz
sha256: b3ed06a9e8ac9a9aae5a6f5dbe78a8a58655d17b43b93c078f094ddc476ae297
#url: https://files.pythonhosted.org/packages/8e/62/8336eff65bcbc8e4cb5d05b55faf041285951b6e80f33e2bff2024788f31/pygments-2.18.0.tar.gz
#sha256: 786ff802f32e91311bff3889f6e9a86e81505fe99f2735bb6d60ae0c5004f199
x-checker-data:
type: pypi
name: Pygments
- name: python-pyyaml
buildsystem: simple
build-commands:
- pip3 install --verbose --exists-action=i --no-index --find-links=file://${PWD}
--prefix=${FLATPAK_DEST} PyYAML --no-build-isolation
sources:
- type: file
url: https://files.pythonhosted.org/packages/cd/e5/af35f7ea75cf72f2cd079c95ee16797de7cd71f29ea7c68ae5ce7be1eda0/PyYAML-6.0.1.tar.gz
sha256: bfdf460b1736c775f2ba9f6a92bca30bc2095067b8a9d77876d1fad6cc3b4a43
x-checker-data:
type: pypi
name: PyYAML
modules:
- name: libyaml
config-opts:
- --enable-static=no
- DOXYGEN=false
sources:
- type: archive
url: https://github.com/yaml/libyaml/releases/download/0.2.5/yaml-0.2.5.tar.gz
sha256: c642ae9b75fee120b2d96c712538bd2cf283228d2337df2cf2988e3c02678ef4
x-checker-data:
type: anitya
project-id: 1800
url-template: https://github.com/yaml/libyaml/releases/download/$version/yaml-$version.tar.gz
- name: maturin-bin
buildsystem: simple
build-commands:
- pip3 install --verbose --exists-action=i --no-index --find-links=file://${PWD}
--prefix=${FLATPAK_DEST} maturin --no-build-isolation
sources:
- type: file
only-arches:
- x86_64
url: https://files.pythonhosted.org/packages/py3/m/maturin/maturin-0.13.7-py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.musllinux_1_1_x86_64.whl
sha256: a96f1b3ede71c0f76b8c7cfac18a9eec90174bdf434fa9aeff491be9a7ca5179
x-checker-data:
type: anitya
project-id: 42653
url-template: https://files.pythonhosted.org/packages/py3/m/maturin/maturin-$version-py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.musllinux_1_1_x86_64.whl
versions:
<: 0.14.0
- type: file
only-arches:
- aarch64
url: https://files.pythonhosted.org/packages/py3/m/maturin/maturin-0.13.7-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl
sha256: 0b6ac1219a809155057fd1f358f7ece03c3abd2e2991832ce5146825a9fa4160
x-checker-data:
type: anitya
project-id: 42653
url-template: https://files.pythonhosted.org/packages/py3/m/maturin/maturin-$version-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl
versions:
<: 0.14.0
cleanup:
- '*'
- python-adblock/python-adblock.json
- name: pdfjs
buildsystem: simple
build-commands:
- unzip pdfjs-*.zip
- install -dm755 ${FLATPAK_DEST}/share/pdf.js
- cp -R {LICENSE,build,web} ${FLATPAK_DEST}/share/pdf.js
- find ${FLATPAK_DEST}/share/pdf.js -type f -exec chmod 644 {} \;
sources:
- type: file
url: https://github.com/mozilla/pdf.js/releases/download/v3.2.146/pdfjs-3.2.146-legacy-dist.zip
sha256: c99d9ca19d57a09cc1dadf7fa0965a69af8bc36f7021cbc0bf8deb6f8551ad0a
# x-checker-data:
# is-important: true
# type: json
# url: https://api.github.com/repos/mozilla/pdf.js/releases
# version-query: .[0] | .tag_name | sub("^v"; "")
# url-query: .[0] | .assets[] | select(.name=="pdfjs-" + $version + "-legacy-dist.zip")
# | .browser_download_url
- flatpak-spawn-wrapper/flatpak-spawn-wrapper.json
# TODO: f-e-d-c for tests
#- tests/tests-dependencies.json