-
Notifications
You must be signed in to change notification settings - Fork 3
/
org.tug.texworks.yaml
154 lines (145 loc) · 5.27 KB
/
org.tug.texworks.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
app-id: org.tug.texworks
runtime: org.kde.Platform
runtime-version: '6.8'
sdk: org.kde.Sdk
command: texworks
rename-desktop-file: texworks.desktop
rename-appdata-file: texworks.appdata.xml
rename-icon: TeXworks
finish-args:
# - --socket=wayland
- --socket=x11
- --share=ipc
- --device=dri
- --filesystem=host
- --env=TEXMFCACHE=$XDG_CACHE_HOME
- --env=SESSION_MANAGER= # required to avoid Qt warning
- --env=PATH=/app/texlive/bin/x86_64-linux:/app/texlive/bin/aarch64-linux:/app/bin:/usr/bin # required to find texlive binaries
- --env=LD_LIBRARY_PATH=/app/texlive/lib:/app/texlive/lib/perl5/5.38.0/x86_64-linux/CORE
- --env=PERL5LIB=/app/texlive/lib/perl5/5.38.0:/app/texlive/lib/perl5/site_perl/5.38.0
add-extensions:
org.freedesktop.Sdk.Extension.texlive:
version: '23.08'
directory: texlive # this is relative to /app
no-autodownload: true
modules:
- shared-modules/lua5.4/lua-5.4.json # required for TeXworks's lua scripting plugin
- name: boost # Build requirement of poppler
sources:
- type: archive
url: https://github.com/boostorg/boost/releases/download/boost-1.87.0/boost-1.87.0-b2-nodocs.tar.xz
sha256: 3abd7a51118a5dd74673b25e0a3f0a4ab1752d8d618f4b8cea84a603aeecc680
x-checker-data:
type: anitya
project-id: 6845
stable-only: true
url-template: https://github.com/boostorg/boost/releases/download/boost-$version/boost-$version-b2-nodocs.tar.xz
buildsystem: simple
build-commands:
- ./bootstrap.sh --prefix=/app --with-libraries=system
- ./b2 install
- name: poppler # PDF rendering library used by TeXworks
sources:
- type: archive
url: https://poppler.freedesktop.org/poppler-24.12.0.tar.xz
sha256: 1cf374c3146f3f685d9257701bf0c2866c61d6c202c14d1f5c01a1f3a089028a
x-checker-data:
type: anitya
project-id: 3686
stable-only: true
url-template: https://poppler.freedesktop.org/poppler-$version.tar.xz
buildsystem: cmake-ninja
config-opts:
- -DENABLE_UTILS=OFF
- -DENABLE_CPP=OFF
- -DENABLE_GLIB=OFF
- -DENABLE_GOBJECT_INTROSPECTION=OFF
- -DENABLE_QT5=OFF
cleanup:
- /bin
- /include
- /lib/pkgconfig
- /lib/*.a
- /lib/*.la
- /share/man
- name: poppler-data # Encoding data for CJK documents
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
stable-only: true
url-template: https://poppler.freedesktop.org/poppler-data-$version.tar.gz
buildsystem: simple
build-commands:
- make prefix=/app install
cleanup:
- /share/pkgconfig
- name: hunspell # Spell checking library used by TeXworks
sources:
- type: archive
url: https://github.com/hunspell/hunspell/archive/v1.7.2.tar.gz
sha256: 69fa312d3586c988789266eaf7ffc9861d9f6396c31fc930a014d551b59bbd6e
x-checker-data:
type: anitya
project-id: 1343
stable-only: true
url-template: https://github.com/hunspell/hunspell/archive/v$version.tar.gz
buildsystem: simple
build-commands:
- autoreconf -vfi
- ./configure --prefix=/app
- make -j
- make install
cleanup:
- /bin
- /include
- /lib/pkgconfig
- /lib/*.a
- /lib/*.la
- /share/man
- name: libreoffice-dictionaries # Spell checking dictionaries
sources:
- type: archive
url: https://github.com/LibreOffice/dictionaries/archive/refs/tags/libreoffice-25.2.0.1.tar.gz
sha256: 91154601090a160a692c317129a663a16e1a67e3afe78ea8887c1a9940274e23
buildsystem: simple
build-commands:
# Only install languages the TeXworks UI has been translated to
- for LANG in af ar ca cs de en es fr it nl pl pt ru sl tr; do
for DIC in $(find . -iname "${LANG}*.dic"); do
AFF="$(dirname "${DIC}")/$(basename "${DIC}" ".dic").aff";
if [ ! -f "${AFF}" ]; then continue; fi;
echo "Installing $(basename ${DIC} .dic)";
install -D -t /app/share/hunspell "${DIC}";
install -D -t /app/share/hunspell "${AFF}";
done;
done
- name: texlive-mountpoint # Mount point for org.freedesktop.Sdk.Extension.texlive
buildsystem: simple
build-commands:
- mkdir -p /app/texlive
- name: manual # The TeXworks manual
sources:
- type: archive
url: https://github.com/TeXworks/manual/releases/download/2024-02-09/TeXworks-manual-html-20240209214359-496ef4a.zip
sha256: 4eb722d214068b38972d1da176db4496d27ca1ca8dd995619d5833cae4b83e9e
buildsystem: simple
build-commands:
- install -d /app/share/doc/texworks-help
- cp -ra * /app/share/doc/texworks-help
- name: texworks
sources:
- type: git
url: https://github.com/TeXworks/texworks.git
tag: release-0.6.9
commit: 68a2e99cffbbf38f2e210d67d9a522acf77fdf6b
- type: patch
path: appdata.patch
buildsystem: cmake-ninja
config-opts:
- -DTW_BUILD_ID=flatpak
- -DTeXworks_DIC_DIR=/app/share/hunspell
- -DQT_DEFAULT_MAJOR_VERSION=6