-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathcom.github.xournalpp.xournalpp.yaml
235 lines (217 loc) · 7.83 KB
/
com.github.xournalpp.xournalpp.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
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
app-id: com.github.xournalpp.xournalpp
# The (bigger) Gnome Platform is just a workaround for an issue with custom cursors,
# see https://github.com/xournalpp/xournalpp/issues/2375#issuecomment-781482931
runtime: org.gnome.Platform
runtime-version: '48'
sdk: org.gnome.Sdk
add-extensions:
org.freedesktop.Sdk.Extension.texlive:
directory: extensions
subdirectories: true
no-autodownload: true
autodelete: true
version: '24.08'
command: xournalpp
finish-args:
# X11 + XShm access
- --share=ipc
- --socket=fallback-x11
# Wayland access
- --socket=wayland
# File access (unfortunately, autosaving will not work properly outside of $XDG_DOCUMENTS_DIR)
# Also: https://github.com/flathub/com.github.xournalpp.xournalpp/issues/13
- --filesystem=host
# Sound
- --socket=pulseaudio
- --filesystem=xdg-run/pipewire-0
# Migrate DConf
- --metadata=X-DConf=migrate-path=/com/github/xournalpp/xournalpp/
# The default is not a writable directory
- --env=TEXMFVAR=$XDG_CACHE_HOME/texmf-var
- --persist=.xournalpp
# Allow acces to GVfs (network shares)
- --filesystem=xdg-run/gvfs
- --filesystem=xdg-run/gvfsd
- --talk-name=org.gtk.vfs.*
# Access to the TeX binaries, tinytex last so the full version takes preference
- --env=PATH=/app/bin:/app/extensions/bin:/app/extensions/bin/x86_64-linux:/app/extensions/bin/aarch64-linux:/usr/bin:/app/tinytex/bin/x86_64-linux
cleanup:
- /include
- /lib/pkgconfig
- /man
- /share/doc
- /share/gtk-doc
- /share/man
- /share/pkgconfig
- '*.la'
- '*.a'
modules:
- shared-modules/lua5.3/lua-5.3.5.json
- name: sourceview4
buildsystem: meson
config-opts:
- -Dinstall_tests=false
- -Dgtk_doc=false
sources:
- type: archive
url: https://download.gnome.org/sources/gtksourceview/4.8/gtksourceview-4.8.4.tar.xz
sha256: 7ec9d18fb283d1f84a3a3eff3b7a72b09a10c9c006597b3fbabbb5958420a87d
- name: lua-lgi
buildsystem: simple
no-autogen: true
no-make-install: true
build-commands:
- make PREFIX="" LUA_VERSION="5.3"
- make install PREFIX="" LUA_VERSION="5.3" DESTDIR=$FLATPAK_DEST
sources:
- type: git
url: https://github.com/pavouk/lgi.git
commit: 4071f902b635d3a7078c65162fce347367b1371d
- name: openjpeg
buildsystem: cmake-ninja
cleanup:
- /bin
- /include
- /lib/openjpeg-*
- /lib/pkgconfig
sources:
- type: archive
url: https://www.github.com/uclouvain/openjpeg/archive/v2.5.3.tar.gz
sha256: 368fe0468228e767433c9ebdea82ad9d801a3ad1e4234421f352c8b06e7aa707
x-checker-data:
type: anitya
project-id: 2550
url-template: https://www.github.com/uclouvain/openjpeg/archive/v$version.tar.gz
- name: poppler
buildsystem: cmake-ninja
config-opts:
- -DCMAKE_INSTALL_LIBDIR=/app/lib
- -DCMAKE_INSTALL_INCLUDEDIR=/app/include
- -DENABLE_QT5=OFF
- -DENABLE_QT6=OFF
- -DENABLE_CPP=OFF
- -DENABLE_BOOST=OFF
- -DENABLE_LIBOPENJPEG=openjpeg2
cleanup:
- /bin
sources:
- type: archive
url: https://poppler.freedesktop.org/poppler-25.03.0.tar.xz
sha256: 97da4ff88517a6bbd729529f195f85c8d7a0c3bb4a3d57cb0c685cbb052fe837
x-checker-data:
type: anitya
project-id: 3686
url-template: https://poppler.freedesktop.org/poppler-$version.tar.xz
- name: poppler-data
buildsystem: cmake-ninja
config-opts:
- -DCMAKE_BUILD_TYPE=RelWithDebInfo
sources:
- type: archive
url: https://poppler.freedesktop.org/poppler-data-0.4.12.tar.gz
sha256: c835b640a40ce357e1b83666aabd95edffa24ddddd49b8daff63adb851cdab74
x-checker-data:
type: anitya
project-id: 3687
url-template: https://poppler.freedesktop.org/poppler-data-$version.tar.gz
- name: libzip
buildsystem: cmake-ninja
config-opts:
- -DCMAKE_INSTALL_LIBDIR=/app/lib
- -DCMAKE_INSTALL_INCLUDEDIR=/app/include
cleanup:
- /bin
sources:
- type: archive
url: https://libzip.org/download/libzip-1.11.3.tar.xz
sha256: 9509d878ba788271c8b5abca9cfde1720f075335686237b7e9a9e7210fe67c1b
x-checker-data:
type: anitya
project-id: 10649
url-template: https://libzip.org/download/libzip-$version.tar.xz
- name: libportaudiocpp
buildsystem: autotools
config-opts:
- --enable-cxx # compile with c++ headers!!!
make-args:
# seem parallel build is broken. At least it breaks for me, locally
- -j1
sources:
- type: archive
url: https://github.com/PortAudio/portaudio/archive/refs/tags/v19.7.0.tar.gz
sha256: 5af29ba58bbdbb7bbcefaaecc77ec8fc413f0db6f4c4e286c40c3e1b83174fa0
cleanup:
- /include
- /lib/*.a
- /lib/*.la
- /lib/pkgconfig
- /man
- /share/aclocal
- /share/doc
- /share/gtk-doc
- /share/man
- /share/pkgconfig
- name: libsndfile
buildsystem: autotools
sources:
- type: archive
url: https://github.com/libsndfile/libsndfile/releases/download/1.2.2/libsndfile-1.2.2.tar.xz
sha256: 3799ca9924d3125038880367bf1468e53a1b7e3686a934f098b7e1d286cdb80e
x-checker-data:
type: anitya
project-id: 13277
url-template: https://github.com/libsndfile/libsndfile/releases/download/$version/libsndfile-$version.tar.xz
- name: xournalpp
buildsystem: cmake-ninja
config-opts:
- -DCMAKE_BUILD_TYPE=RelWithDebInfo
builddir: true
post-install:
- cp $FLATPAK_DEST/share/icons/hicolor/scalable/mimetypes/{,$FLATPAK_ID.}application-x-xopp.svg
- cp $FLATPAK_DEST/share/icons/hicolor/scalable/mimetypes/{,$FLATPAK_ID.}application-x-xopt.svg
- cp $FLATPAK_DEST/share/icons/hicolor/scalable/mimetypes/{,$FLATPAK_ID.}application-x-xojpp.svg
sources:
- type: git
url: https://github.com/xournalpp/xournalpp
commit: e36e8f77071287be45b6d152b8eb6ccc12551aeb
tag: v1.2.6
x-checker-data:
type: git
tag-pattern: ^v([\d.]+)$
- type: patch
# Until we get flatpak-builder 1.4 (or 1.3.5)
path: xournalpp-mime-icons.patch
# Full version that is like 7 GB big
- name: texlive_extension
buildsystem: simple
build-commands:
- mkdir /app/extensions
# Smaller latex package
- name: tinytex
only-arches:
- x86_64
buildsystem: simple
build-commands:
- mkdir /app/tinytex
- tar xf TinyTeX-v2024.01.tar.gz -C /app/tinytex/ --strip-components 1
- unzip -d /app/tinytex/texmf-dist/tex/latex/ scontents-2.0.zip
- cd /app/tinytex/texmf-dist/tex/latex/scontents/
- /app/tinytex/bin/*/latex -output-directory=/app/tinytex/texmf-dist/tex/latex/scontents
scontents.ins
- unzip -d /app/tinytex/texmf-dist/ pgfplots_1.17.tds.zip
- /app/tinytex/bin/*/mktexlsr # so that unzipped packages are found
- /app/tinytex/bin/*/tlmgr remove --force --no-depends $(cat pkgs-remove.txt
| tr '\n' ' ') # remove unneeded packages
- rm -rf /app/tinytex/texmf-dist/doc/ # saving some space
sources:
- type: file
url: https://github.com/rstudio/tinytex-releases/releases/download/v2024.01/TinyTeX-v2024.01.tar.gz
sha256: 5656473061e9d3aafe14e602aef854213be730b24aa8a77eafae12f521c5d9d9
- type: file
url: https://github.com/pablgonz/scontents/releases/download/v2.0/scontents-2.0.zip
sha256: 7512cf6fbba96aab93c1e099cdb104861b2ac0c4d0c59f9a999e4003ec42a79d
- type: file
url: https://github.com/pgf-tikz/pgfplots/releases/download/1.17/pgfplots_1.17.tds.zip
sha256: 6fdeb9af837a46e9e7aaf012f8cb40277d8d234814dd9da9aff7fc27664fc2cf
- type: file
path: pkgs-remove.txt