-
Notifications
You must be signed in to change notification settings - Fork 1
/
org.xfce.ristretto.yml
278 lines (266 loc) · 10.1 KB
/
org.xfce.ristretto.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
app-id: org.xfce.ristretto
runtime: org.freedesktop.Platform
runtime-version: '23.08'
sdk: org.freedesktop.Sdk
command: ristretto
sdk-extensions:
- org.freedesktop.Sdk.Extension.rust-stable
finish-args:
- --share=ipc
- --socket=fallback-x11
- --socket=wayland
# the open dialog is native, but we still need this to open files via the command line
# and drag and drop, and to delete files
- --filesystem=host
# FIXME: necessary for Tumbler to emit signals, see
# https://github.com/flathub/flathub/issues/2770
# https://github.com/flathub/org.xfce.ristretto/pull/7
- --socket=session-bus
- --talk-name=org.freedesktop.FileManager1
# access remote locations with GVfs
- --filesystem=xdg-run/gvfs
# see below, at the end of the pixbuf loader list
- --env=GDK_PIXBUF_MODULE_FILE=/app/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache
cleanup:
- '*.a'
- '*.la'
- /lib/cmake
- /lib/girepository-1.0
- /lib/pkgconfig
- /include
- /share/gir-1.0
- /share/gtk-doc
modules:
# to be removed when xfconf goes to 4.20
# to be removed when libxfce4ui goes to 4.20
# to be removed when tumbler goes to 4.20
- shared-modules/intltool/intltool-0.51.json
# mandatory dependencies
- name: libxfce4util
cleanup:
- /sbin
config-opts:
- --disable-debug
sources:
- type: archive
url: https://archive.xfce.org/src/xfce/libxfce4util/4.18/libxfce4util-4.18.2.tar.bz2
sha256: d9a329182b78f7e2520cd4aafcbb276bbbf162f6a89191676539ad2e3889c353
x-checker-data:
type: anitya
project-id: 232001
url-template: https://archive.xfce.org/src/xfce/libxfce4util/$major.$minor/libxfce4util-$version.tar.bz2
- name: xfconf
cleanup:
- /bin
- /share/bash-completion
config-opts:
- --disable-debug
- XFCONF_SERVICE_NAME_PREFIX=org.xfce.ristretto
sources:
- type: archive
url: https://archive.xfce.org/src/xfce/xfconf/4.18/xfconf-4.18.3.tar.bz2
sha256: c56cc69056f6947b2c60b165ec1e4c2b0acf26a778da5f86c89ffce24d5ebd98
x-checker-data:
type: anitya
project-id: 14854
url-template: https://archive.xfce.org/src/xfce/xfconf/$major.$minor/xfconf-$version.tar.bz2
- name: libxfce4ui
cleanup:
- /bin
- /etc
- /share/icons
- /share/applications
config-opts:
- --disable-debug
sources:
- type: archive
url: https://archive.xfce.org/src/xfce/libxfce4ui/4.18/libxfce4ui-4.18.6.tar.bz2
sha256: 77dd99206cc8c6c7f69c269c83c7ee6a037bca9d4a89b1a6d9765e5a09ce30cd
x-checker-data:
type: anitya
project-id: 232000
url-template: https://archive.xfce.org/src/xfce/libxfce4ui/$major.$minor/libxfce4ui-$version.tar.bz2
# optional dependencies for gdk-pixbuf
- name: libopenraw
build-options:
append-path: /usr/lib/sdk/rust-stable/bin
sources:
- type: archive
url: https://libopenraw.freedesktop.org/download/libopenraw-0.3.7.tar.xz
sha256: 0ece41951b2cd91e43f6a8a5c6a894bbc8b5923b4e49a82ebb6d8ce62bded68c
x-checker-data:
type: anitya
project-id: 7980
url-template: https://libopenraw.freedesktop.org/download/libopenraw-$version.tar.xz
# See https://gitlab.freedesktop.org/libopenraw/libopenraw/-/issues/9
# Necessary in this context, to make the pixbuf loader install in /app/lib
- type: patch
path: patches/build-Honor-installation-prefix-also-for-the-pixbuf-.patch
- type: shell
commands:
- autoreconf -vfi
modules:
- name: boost
cleanup:
- '*'
buildsystem: simple
build-commands:
- ./bootstrap.sh --prefix=/app --with-libraries=system --with-libraries=test
- ./b2 install variant=release link=shared runtime-link=shared cxxflags="$CXXFLAGS"
linkflags="$LDFLAGS" -j $FLATPAK_BUILDER_N_JOBS
sources:
- type: archive
url: https://boostorg.jfrog.io/artifactory/main/release/1.86.0/source/boost_1_86_0.tar.gz
sha256: 2575e74ffc3ef1cd0babac2c1ee8bdb5782a0ee672b1912da40e5b4b591ca01f
x-checker-data:
type: anitya
project-id: 6845
url-template: https://boostorg.jfrog.io/artifactory/main/release/$version/source/boost_${version0}_${version1}_$version2.tar.gz
- name: libheif
buildsystem: cmake-ninja
config-opts:
- -DCMAKE_COMPILE_WARNING_AS_ERROR=OFF
- -DWITH_OpenH264_DECODER=OFF
- -DENABLE_PLUGIN_LOADING=OFF
sources:
- type: archive
url: https://github.com/strukturag/libheif/releases/download/v1.19.5/libheif-1.19.5.tar.gz
sha256: d3cf0a76076115a070f9bc87cf5259b333a1f05806500045338798486d0afbaf
x-checker-data:
type: json
url: https://api.github.com/repos/strukturag/libheif/releases/latest
version-query: .tag_name | sub("^v"; "")
url-query: .assets | map(select(.name=="libheif-\($version).tar.gz")) |
first | .browser_download_url
- type: shell
commands:
- sed -i 's|DESTINATION ${GDKPIXBUF2_MODULE_DIR}|DESTINATION /app/lib/gdk-pixbuf-2.0/2.10.0/loaders|'
gdk-pixbuf/CMakeLists.txt
modules:
- name: libde265
cleanup:
- /bin
config-opts:
- --disable-encoder
- --disable-sherlock265
- --disable-dec265
sources:
- type: archive
url: https://github.com/strukturag/libde265/releases/download/v1.0.15/libde265-1.0.15.tar.gz
sha256: 00251986c29d34d3af7117ed05874950c875dd9292d016be29d3b3762666511d
x-checker-data:
type: json
url: https://api.github.com/repos/strukturag/libde265/releases/latest
version-query: .tag_name | sub("^v"; "")
url-query: .assets | map(select(.name=="libde265-\($version).tar.gz"))
| first | .browser_download_url
- name: libwmf
cleanup:
- /bin
config-opts:
- CFLAGS=-I/app/include/freetype2
sources:
- type: git
url: https://github.com/caolanm/libwmf.git
tag: v0.2.13
commit: 9e4737f2293c0d127bda92e5b01896df10571424
x-checker-data:
type: json
url: https://api.github.com/repos/caolanm/libwmf/releases/latest
tag-query: .tag_name
version-query: $tag | sub("^v"; "")
timestamp-query: .published_at
- type: shell
commands:
- autoreconf -vfi
modules:
- name: freetype
buildsystem: meson
sources:
- type: archive
url: https://download-mirror.savannah.gnu.org/releases/freetype/freetype-2.13.3.tar.xz
sha256: 0550350666d427c74daeb85d5ac7bb353acba5f76956395995311a9c6f063289
x-checker-data:
type: anitya
project-id: 854
url-template: https://download-mirror.savannah.gnu.org/releases/freetype/freetype-$version.tar.xz
- name: webp-pixbuf-loader
buildsystem: meson
config-opts:
- -Dgdk_pixbuf_moduledir=/app/lib/gdk-pixbuf-2.0/2.10.0/loaders/
sources:
- type: git
url: https://github.com/aruiz/webp-pixbuf-loader.git
tag: 0.2.7
commit: 52232e4ba282b2fed68e8fcb4b5d45ed0eaa4ed3
x-checker-data:
type: json
url: https://api.github.com/repos/aruiz/webp-pixbuf-loader/releases/latest
tag-query: .tag_name
version-query: $tag
timestamp-query: .published_at
- name: libavif
buildsystem: cmake
config-opts:
- -DAVIF_BUILD_GDK_PIXBUF=ON
- -DAVIF_LIBYUV=OFF
sources:
- type: git
url: https://github.com/AOMediaCodec/libavif.git
tag: v1.1.1
commit: bb24db03cd99befe09c87b602e36f24d75a980d1
x-checker-data:
type: anitya
project-id: 178015
tag-template: v$version
- type: shell
commands:
- sed -i 's|DESTINATION ${GDK_PIXBUF_MODULEDIR}|DESTINATION /app/lib/gdk-pixbuf-2.0/2.10.0/loaders|'
contrib/gdk-pixbuf/CMakeLists.txt
# for the above libraries to be taken into account by gdk-pixbuf, stolen from
# https://github.com/flathub/org.gnome.eog/blob/master/org.gnome.eog.yml
- name: update-pixbuf-loaders
buildsystem: simple
build-commands:
- GDK_PIXBUF_MODULEDIR=/app/lib/gdk-pixbuf-2.0/2.10.0/loaders/ gdk-pixbuf-query-loaders
> /app/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache
- gdk-pixbuf-query-loaders >> /app/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache
# Tumbler as a private service, just as Xfconf above: stricly speaking it is not a
# mandatory dependency, but in the Flatpak context it almost becomes one, and it
# allows the application to be more self-contained
- name: tumbler
cleanup:
- /lib/systemd
- /share/icons
post-install:
- sed -i '/^SystemdService=/d' /app/share/dbus-1/services/org.xfce.ristretto.*.service
config-opts:
- --disable-debug
- --disable-cover-thumbnailer
- --disable-font-thumbnailer
- --disable-ffmpeg-thumbnailer
- --disable-gstreamer-thumbnailer
- --disable-odf-thumbnailer
- --disable-poppler-thumbnailer
- --disable-gepub-thumbnailer
- TUMBLER_SERVICE_NAME_PREFIX=org.xfce.ristretto
sources:
- type: archive
url: https://archive.xfce.org/src/xfce/tumbler/4.18/tumbler-4.18.2.tar.bz2
sha256: b530eec635eac7f898c0d8d3a3ff79d76a145d3bed3e786d54b1ec058132be7a
x-checker-data:
type: anitya
project-id: 5014
url-template: https://archive.xfce.org/src/xfce/tumbler/$major.$minor/tumbler-$version.tar.bz2
- name: ristretto
config-opts:
- --disable-debug
- TUMBLER_SERVICE_NAME_PREFIX=org.xfce.ristretto
sources:
- type: archive
url: https://archive.xfce.org/src/apps/ristretto/0.13/ristretto-0.13.2.tar.bz2
sha256: 779f5ede3016019eec01d64a025583078d3936e35d4288ec2e8433494d757dd9
x-checker-data:
type: anitya
project-id: 8365
url-template: https://archive.xfce.org/src/apps/ristretto/$major.$minor/ristretto-$version.tar.bz2