forked from flathub/org.tug.texworks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
org.tug.texworks.yaml
148 lines (139 loc) · 4.96 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
app-id: org.tug.texworks
runtime: org.kde.Platform
runtime-version: 6.4
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
add-extensions:
org.freedesktop.Sdk.Extension.texlive:
version: 22.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.81.0/boost-1.81.0.tar.xz
sha256: 06bc525a392650eb6248f40a13f40112b6c485eec7103b6dcde7196f2a3570e0
x-checker-data:
type: anitya
project-id: 6845
stable-only: true
url-template: https://github.com/boostorg/boost/releases/download/boost-$version/boost-$version.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-23.02.0.tar.xz
sha256: 3315dda270fe2b35cf1f41d275948c39652fa863b90de0766f6b293d9a558fc9
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_GOBJECT_INTROSPECTION=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/libreoffice-7.5.1.1.tar.gz
sha256: c8a2c005f9a7bc0497d91f8410ab8bb7bbb2041d7ac6afbcded9ef317db1b08d
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/2021-03-08/TeXworks-manual-html-20210308173322-7d24168.zip
sha256: b3fea63be210367f24d2d0a70c8e272f107edc4f53e241ec19c61e63eee99569
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.8
commit: 6b1c6ab2569e0f72d91871cad3311f4d12a3076f
- 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