forked from flathub/org.texstudio.TeXstudio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
org.texstudio.TeXstudio.yaml
92 lines (89 loc) · 3.38 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
app-id: org.texstudio.TeXstudio
runtime: org.kde.Platform
runtime-version: 5.15-21.08
sdk: org.kde.Sdk
add-extensions:
org.freedesktop.Sdk.Extension.texlive:
directory: texlive
subdirectories: true
autodelete: true
version: '21.08'
command: texstudio.sh
rename-icon: texstudio
rename-appdata-file: texstudio.metainfo.xml
rename-desktop-file: texstudio.desktop
finish-args:
- --socket=wayland
- --socket=fallback-x11
- --share=ipc
- --device=dri
- --filesystem=host # required to open files
- --filesystem=/tmp # this way lualatex etc. can access files newly ceated by TeXstudio stored in the hosts's /tmp
- --talk-name=org.freedesktop.Flatpak # required for flatpak-spawn --host
- --talk-name=com.canonical.AppMenu.Registrar # required for global menu
- --share=network # required for LanguageTool
- --env=PATH=/usr/bin:/app/bin:/app/texlive/bin:/app/texlive/bin/x86_64-linux:/app/texlive/bin/aarch64-linux # add paths of TeXlive Flatpak extension binaries
- --env=LD_LIBRARY_PATH=/app/texlive/lib/ # add library paths
cleanup:
- /include
- /lib/pkgconfig
- /share/man
modules:
- name: texlive-extension
buildsystem: simple
build-commands:
- mkdir /app/texlive
- name: boost # build dependency of poppler
buildsystem: simple
build-commands:
- mkdir -p ${FLATPAK_DEST}/include
- mv boost ${FLATPAK_DEST}/include
cleanup:
- /include
sources:
- type: archive
url: https://boostorg.jfrog.io/artifactory/main/release/1.73.0/source/boost_1_73_0.tar.bz2
sha256: 4eb3b8d442b426dc35346235c8733b5ae35ba431690e38c6a8263dce9fcbb402
- name: poppler # build dependency of TeXstudio
buildsystem: cmake-ninja
config-opts:
- -DCMAKE_BUILD_TYPE=RelWithDebInfo
sources:
- type: archive
url: https://poppler.freedesktop.org/poppler-22.10.0.tar.xz
sha256: 04e40fad924a6de62e63017a6fd4c04696c1f526dedc2ba5ef275cedf646292a
x-checker-data:
type: anitya
project-id: 3686
url-template: https://poppler.freedesktop.org/poppler-$version.tar.xz
- name: texstudio
buildsystem: qmake
cleanup-platform:
- /bin
- /mkspecs
sources:
- type: archive
url: https://github.com/texstudio-org/texstudio/archive/refs/tags/4.3.1.tar.gz
sha256: 30fa3d4718ce793e4fe5c0c1a3d7d022cb63acc05272cfc0cd820848bcf48b00
x-checker-data:
type: anitya
project-id: 6239
stable-only: true
url-template: https://github.com/texstudio-org/texstudio/archive/refs/tags/$version.tar.gz
- type: shell
commands:
- sed -e "s|setDesktopFileName(\"texstudio\")|setDesktopFileName(\"org.texstudio.TeXstudio\")|"
-i src/main.cpp
- type: patch
path: 0001-Add-Flatpak-shim-use-TeX-Live-Flatpak-extension-if-a.patch
- type: shell
commands:
- sed -zi "s|</description>[[:space:]]*<launchable|<p>Requires either TeX
Live being installed on the system from your distribution's repositories
or the TeX Live Flatpak which you can install by running 'flatpak install
flathub org\.freedesktop\.Sdk\.Extension\.texlive//21\.08'</p></description><launchable|"
utilities/texstudio.metainfo.xml
- type: file
path: texstudio.sh
build-commands:
- install -Dm755 -t ${FLATPAK_DEST}/bin/ ./texstudio.sh