forked from flathub/net.ankiweb.Anki
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnet.ankiweb.Anki.yaml
190 lines (184 loc) · 5.81 KB
/
net.ankiweb.Anki.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
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
app-id: net.ankiweb.Anki
runtime: org.freedesktop.Platform
runtime-version: '23.08'
sdk: org.freedesktop.Sdk
add-extensions:
org.freedesktop.Sdk.Extension.texlive:
version: '23.08'
directory: texlive # this is relative to /app
no-autodownload: true
command: anki
rename-desktop-file: anki.desktop
rename-icon: anki
finish-args:
# X11/Wayland
- --socket=fallback-x11
- --socket=wayland
- --share=ipc
- --device=dri
# Flashcards with sound
- --socket=pulseaudio
# Sync
- --share=network
# Allow other instances to see lockfiles
- --env=TMPDIR=/var/tmp
# IBus support
- --env=IBUS_USE_PORTAL=1
# LaTeX
- --env=PATH=/app/bin:/usr/bin:/app/texlive/bin/x86_64-linux:/app/texlive/bin/aarch64-linux
modules:
- name: texlive
buildsystem: simple
build-commands:
- install -d /app/texlive
- name: libass
sources:
- type: archive
url: https://github.com/libass/libass/releases/download/0.17.1/libass-0.17.1.tar.xz
sha256: f0da0bbfba476c16ae3e1cfd862256d30915911f7abaa1b16ce62ee653192784
x-checker-data:
type: anitya
project-id: 1560
stable-only: true
url-template: https://github.com/libass/libass/releases/download/$version/libass-$version.tar.xz
- type: script
commands:
- autoreconf -fiv
dest-filename: autogen.sh
cleanup:
- /include
- /lib/pkgconfig
- /share
- name: libplacebo
buildsystem: meson
config-opts:
- -Dvulkan=enabled
- -Dshaderc=enabled
cleanup:
- /include
- /lib/pkgconfig
sources:
- type: git
url: https://code.videolan.org/videolan/libplacebo.git
mirror-urls:
- https://github.com/haasn/libplacebo.git
tag: v6.338.1
commit: 2805a0d01c029084ab36bf5d0e3c8742012a0b27
x-checker-data:
type: git
tag-pattern: ^v([\d.]+)$
modules:
- name: shaderc
buildsystem: cmake-ninja
builddir: true
config-opts:
- -DSHADERC_SKIP_COPYRIGHT_CHECK=ON
- -DSHADERC_SKIP_EXAMPLES=ON
- -DSHADERC_SKIP_TESTS=ON
- -DSPIRV_SKIP_EXECUTABLES=ON
- -DENABLE_GLSLANG_BINARIES=OFF
cleanup:
- /bin
- /include
- /lib/cmake
- /lib/pkgconfig
- /lib/*.a
sources:
- type: git
url: https://github.com/google/shaderc.git
tag: v2023.8
commit: e6edd6d48fa5bdd9d176794c6810fae7f8e938e1
x-checker-data:
type: git
tag-pattern: ^v(\d{4}\.\d{1,2})$
- type: git
url: https://github.com/KhronosGroup/SPIRV-Tools.git
tag: v2023.2
commit: 44d72a9b36702f093dd20815561a56778b2d181e
dest: third_party/spirv-tools
x-checker-data:
type: git
tag-pattern: ^v(\d{4}\.\d{1})$
- type: git
url: https://github.com/KhronosGroup/SPIRV-Headers.git
tag: sdk-1.3.250.1
commit: 268a061764ee69f09a477a695bf6a11ffe311b8d
dest: third_party/spirv-headers
#x-checker-data:
# type: git
# tag-pattern: ^sdk-([\d.]+)$
- type: git
url: https://github.com/KhronosGroup/glslang.git
tag: 14.0.0
commit: a91631b260cba3f22858d6c6827511e636c2458a
dest: third_party/glslang
# x-checker-data:
# type: git
# tag-pattern: ^(\d{1,2}\.\d{1,2}\.\d{1,4})$
- name: mpv
buildsystem: meson
sources:
- type: archive
url: https://github.com/mpv-player/mpv/archive/refs/tags/v0.37.0.tar.gz
sha256: 1d2d4adbaf048a2fa6ee134575032c4b2dad9a7efafd5b3e69b88db935afaddf
x-checker-data:
type: anitya
project-id: 5348
stable-only: true
url-template: https://github.com/mpv-player/mpv/archive/refs/tags/v$version.tar.gz
- name: krb5
subdir: src
config-opts:
- --localstatedir=/var/lib
- --sbindir=${FLATPAK_DEST}/bin
- --disable-static
- --disable-rpath
build-commands:
- install -Dm644 ../krb5.conf /app/etc/krb5.conf
sources:
- type: archive
url: https://github.com/krb5/krb5/archive/refs/tags/krb5-1.21.2-final.tar.gz
sha256: 5827fa39ead0e7f7b8a158799eb5d50b194129e81b378892caedcafe50c5c195
x-checker-data:
type: anitya
project-id: 13287
stable-only: true
url-template: https://github.com/krb5/krb5/archive/refs/tags/krb5-$version.tar.gz
- type: shell
dest: src
commands:
- autoreconf -si
- type: file
path: krb5.conf
cleanup:
- /bin
- /include
- /lib/pkgconfig
- /share
- name: anki
buildsystem: simple
build-commands:
- ./install.sh
- install -Dm644 -t /app/share/icons/hicolor/scalable/apps anki.svg
- install -Dm644 -t /app/share/appdata net.ankiweb.Anki.appdata.xml
- install -Dm644 anki.xml /app/share/mime/packages/net.ankiweb.Anki.xml
cleanup:
- /share/pixmaps
sources:
- type: archive
url: https://github.com/ankitects/anki/releases/download/23.12.1/anki-23.12.1-linux-qt6.tar.zst
sha256: 6c5b4052a4a8152f025844a27a9597cb09dd9228c04db5a9e8225daa541e72e9
x-checker-data:
type: anitya
is-main-source: true
project-id: 49
stable-only: true
url-template: https://github.com/ankitects/anki/releases/download/$version/anki-$version-linux-qt6.tar.zst
- type: file
path: anki.svg
- type: file
path: net.ankiweb.Anki.appdata.xml
- type: shell
commands:
- sed -i '/xdg-mime/d' install.sh
- sed -i 's/PREFIX=\/usr\/local/PREFIX=\/app/' install.sh