forked from flathub/org.texstudio.TeXstudio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
org.texstudio.TeXstudio.yaml
71 lines (66 loc) · 2.39 KB
/
org.texstudio.TeXstudio.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
app-id: org.texstudio.TeXstudio
runtime: org.kde.Platform
runtime-version: '5.12'
sdk: org.kde.Sdk
sdk-extension: org.freedesktop.Sdk.Extension.texlive
command: texstudio
rename-icon: texstudio
rename-appdata-file: texstudio.appdata.xml
rename-desktop-file: texstudio.desktop
finish-args:
# - --socket=wayland (requires https://bugreports.qt.io/browse/QTBUG-68619 to be fixed)
- --socket=fallback-x11
- --share=ipc
- --device=dri
- --filesystem=host # lets LuaLaTeX etc. write output files, even if the document is stored outside of ~
- --filesystem=xdg-config/kdeglobals:ro # gives application access to kdeglobals
- --talk-name=com.canonical.AppMenu.Registrar # gives application access to dbus menu
- --share=network # required for LanguageTool
- --env=TMPDIR=/var/tmp # for lockfiles
- --env=PATH=/usr/bin:/app/bin:/app/bin/x86_64-linux
- --env=TEXMFCACHE=$XDG_CACHE_HOME
- --env=LC_ALL=C # works around LuaLaTex issue with locale
- --env=TEXINPUTS=.:~/texmf/:
build-options:
env:
LD_LIBRARY_PATH: /app/lib:/app/lib64
modules:
- name: texlive
buildsystem: simple
build-commands:
- /usr/lib/sdk/texlive/install.sh
- name: openjpeg # build dependency of poppler
buildsystem: cmake-ninja
sources:
- type: archive
url: https://github.com/uclouvain/openjpeg/archive/v2.3.0.tar.gz
sha256: 3dc787c1bb6023ba846c2a0d9b1f6e179f1cd255172bde9eb75b01f1e6c7d71a
- name: poppler # build dependency of TeXstudio
buildsystem: cmake-ninja
config-opts:
- -DCMAKE_BUILD_TYPE=release
- -DENABLE_QT5:BOOL=true
- -DCMAKE_INSTALL_LIBDIR:PATH=/app/lib
sources:
- type: archive
url: https://poppler.freedesktop.org/poppler-0.71.0.tar.xz
sha256: badbecd2dddf63352fd85ec08a9c2ed122fdadacf2a34fcb4cc227c4d01f2cf9
- name: texstudio
buildsystem: qmake
cleanup-platform:
- /bin
- /mkspecs
sources:
- type: archive
url: https://github.com/texstudio-org/texstudio/archive/2.12.14.tar.gz
sha256: 61df71f368bbf21f865645534f63840fd48dbd2996d6d0188aa26d3b647fede0
- type: patch
path: konsole.patch
post-install:
- sed -i 's|texstudio.desktop|org.texstudio.TeXstudio.desktop|g' /app/share/appdata/texstudio.appdata.xml
- name: konsole
buildsystem: cmake-ninja
sources:
- url: https://github.com/KDE/konsole/archive/v18.08.1.tar.gz
sha256: 25eb2b7c1e48ee5e62160bde835be8e8e15bc22c398fda20d1103a4ef9cef8b6
type: archive