-
Notifications
You must be signed in to change notification settings - Fork 13
/
net.ankiweb.Anki.yaml
191 lines (185 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
191
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
add-ld-path: lib
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.3/libass-0.17.3.tar.xz
sha256: eae425da50f0015c21f7b3a9c7262a910f0218af469e22e2931462fed3c50959
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: v7.349.0
commit: 1fd3c7bde7b943fe8985c893310b5269a09b46c5
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: v2024.1
commit: 47a9387ef5b3600d30d84c71ec77a59dc7db46fa
#x-checker-data:
# type: git
# tag-pattern: ^v(\d{4}\.\d{1,2})$
- type: git
url: https://github.com/KhronosGroup/SPIRV-Tools.git
tag: v2024.3
commit: 0cfe9e7219148716dfd30b37f4d21753f098707a
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: vulkan-sdk-1.3.290.0
commit: 2acb319af38d43be3ea76bfabf3998e5281d8d12
dest: third_party/spirv-headers
x-checker-data:
type: git
tag-pattern: ^vulkan-sdk-([\d.]+)$
- type: git
url: https://github.com/KhronosGroup/glslang.git
tag: 14.3.0
commit: fa9c3deb49e035a8abcabe366f26aac010f6cbfb
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.38.0.tar.gz
sha256: 86d9ef40b6058732f67b46d0bbda24a074fae860b3eaae05bab3145041303066
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.3-final.tar.gz
sha256: 2157d92020d408ed63ebcd886a92d1346a1383b0f91123a0473b4f69b4a24861
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/24.06.3/anki-24.06.3-linux-qt6.tar.zst
sha256: fe8c90cb840753d0c2a98a6572e20dcb9cb4776fe7f9f242a60c0d0d4460b985
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