-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathcom.github.xournalpp.xournalpp.yaml
More file actions
235 lines (217 loc) · 7.57 KB
/
com.github.xournalpp.xournalpp.yaml
File metadata and controls
235 lines (217 loc) · 7.57 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
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: '50'
sdk: org.gnome.Sdk
add-extensions:
org.freedesktop.Sdk.Extension.texlive:
directory: extensions
subdirectories: true
no-autodownload: true
autodelete: true
version: '25.08'
command: xournalpp-wrapper
rename-mime-icons:
- application-x-xopp
- application-x-xopt
- application-x-xojpp
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
# Set LUA_PATH and LUA_CPATH manually in view of issue https://github.com/flathub/shared-modules/issues/434
- --env=LUA_PATH=/app/share/lua/5.4/?.lua;/app/share/lua/5.4/?/init.lua;/app/lib/lua/5.4/?.lua;/app/lib/lua/5.4/?/init.lua;./?.lua;./?/init.lua
- --env=LUA_CPATH=/app/lib/lua/5.4/?.so;/app/lib/lua/5.4/loadall.so;./?.so
cleanup:
- /include
- /lib/pkgconfig
- /man
- /share/doc
- /share/gtk-doc
- /share/man
- /share/pkgconfig
- '*.la'
- '*.a'
modules:
- shared-modules/lua5.4/lua-5.4.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: LuaGObject
buildsystem: meson
config-opts:
- --prefix=/app
sources:
- type: git
url: https://github.com/vtrlx/LuaGObject
commit: 63c8099190c8830e9ba40dba1e48d7b000c7714e
tag: 0.10.5
x-checker-data:
type: git
tag-pattern: ^([\d.]+)$
- 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-26.04.0.tar.xz
sha256: b0955163114af96bc0106f68cb24daf973a629462453d8b82775f81b0d4e0693
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.4.tar.xz
sha256: 8a247f57d1e3e6f6d11413b12a6f28a9d388de110adc0ec608d893180ed7097b
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: qpdf
buildsystem: cmake-ninja
builddir: true
config-opts:
- -DCMAKE_BUILD_TYPE=RelWithDebInfo
sources:
- type: git
url: https://github.com/qpdf/qpdf
tag: v12.3.2
commit: a898bb3a7289d1d05789d6d3f0d5dd534943a8da
x-checker-data:
type: git
tag-pattern: ^v([\d.]+)$
- name: xournalpp
buildsystem: cmake-ninja
config-opts:
- -DCMAKE_BUILD_TYPE=RelWithDebInfo
- -DFETCHCONTENT_SOURCE_DIR_CPPTRACE=/run/build/xournalpp/cpptrace-src
builddir: true
post-install:
- ./cmake/postinst configure
sources:
- type: git
url: https://github.com/xournalpp/xournalpp
commit: 008db5846be8984ff361107e0f1821ec11cf7168
tag: v1.3.4
x-checker-data:
type: git
tag-pattern: ^v([\d.]+)$
- type: git
url: https://github.com/jeremy-rifkin/cpptrace.git
commit: 3db8da80111171c219ab5839905771386bee06b3
tag: v1.0.4
dest: cpptrace-src
x-checker-data:
type: git
tag-pattern: ^v([\d.]+)$
# 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