gpt4all
165 строк · 5.4 Кб
1app-id: io.gpt4all.gpt4all
2default-branch: stable
3runtime: org.kde.Platform
4runtime-version: '6.5'
5sdk: org.kde.Sdk
6sdk-extensions:
7- org.freedesktop.Sdk.Extension.node14
8finish-args:
9- --share=ipc
10- --socket=wayland
11- --socket=x11
12- --share=network
13- --device=dri
14- --env=LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/app/lib/x86_64-linux-gnu/
15- --filesystem=xdg-documents:ro
16command: chat
17cleanup:
18- /include
19
20modules:
21- name: qthttpserver
22buildsystem: cmake
23sources:
24- type: archive
25url: https://invent.kde.org/qt/qt/qthttpserver/-/archive/6.5.2/qthttpserver-6.5.2.zip
26sha256: 9fb7b14774b4ed62fe9097e13fa593af06ba75537783fc62f34652bada26abee
27
28- name: python-html5lib
29buildsystem: simple
30build-commands:
31- 'pip3 install --verbose --exists-action=i --no-index --find-links="file://${PWD}" --prefix=${FLATPAK_DEST} "html5lib" --no-build-isolation'
32sources:
33- type: file
34url: https://files.pythonhosted.org/packages/f4/24/2a3e3df732393fed8b3ebf2ec078f05546de641fe1b667ee316ec1dcf3b7/webencodings-0.5.1-py2.py3-none-any.whl
35sha256: a0af1213f3c2226497a97e2b3aa01a7e4bee4f403f95be16fc9acd2947514a78
36x-checker-data:
37type: pypi
38name: webencodings
39packagetype: bdist_wheel
40- type: file
41url: https://files.pythonhosted.org/packages/6c/dd/a834df6482147d48e225a49515aabc28974ad5a4ca3215c18a882565b028/html5lib-1.1-py2.py3-none-any.whl
42sha256: 0d78f8fde1c230e99fe37986a60526d7049ed4bf8a9fadbad5f00e22e58e041d
43x-checker-data:
44type: pypi
45name: html5lib
46packagetype: bdist_wheel
47cleanup:
48- '*'
49
50- name: qtwebengine
51buildsystem: cmake
52builddir: true
53config-opts:
54- -DQT_FEATURE_qtwebengine_build=OFF
55- -DQT_FEATURE_qtpdf_build=ON
56build-options:
57append-path: /usr/lib/sdk/node14/bin
58env:
59- npm_config_nodedir=/usr/lib/sdk/node14
60sources:
61- type: git
62url: https://invent.kde.org/qt/qt/qtwebengine.git
63tag: v6.5.2
64commit: ac887518e8243828333e923b5a1e61a007babde5
65
66- name: vulkan-headers
67buildsystem: cmake
68builddir: true
69sources:
70- type: git
71url: https://github.com/KhronosGroup/Vulkan-Headers.git
72tag: v1.3.224
73commit: 2b55157592bf4c639b76cc16d64acaef565cc4b5
74
75- name: fmt
76buildsystem: cmake
77builddir: true
78sources:
79- type: git
80url: https://github.com/fmtlib/fmt.git
81tag: 10.1.1
82commit: f5e54359df4c26b6230fc61d38aa294581393084
83
84- name: vulkan-tools
85buildsystem: cmake
86builddir: true
87sources:
88- type: git
89url: https://github.com/KhronosGroup/Vulkan-Tools.git
90tag: v1.3.224
91commit: 497f232680b046db34ba9e9da065e6303a125851
92
93
94
95modules:
96- name: shaderc
97buildsystem: cmake-ninja
98builddir: true
99config-opts:
100- -DSHADERC_SKIP_COPYRIGHT_CHECK=ON
101- -DSHADERC_SKIP_EXAMPLES=ON
102- -DSHADERC_SKIP_TESTS=ON
103- -DSPIRV_SKIP_EXECUTABLES=ON
104- -DENABLE_GLSLANG_BINARIES=OFF
105cleanup:
106- /bin
107- /include
108- /lib/cmake
109- /lib/pkgconfig
110sources:
111- type: git
112url: https://github.com/google/shaderc.git
113tag: v2023.4
114commit: 45b735dfddefe26a99b77e5a74e30d860713ac64
115# x-checker-data:
116# type: git
117# tag-pattern: ^v(\d{4}\.\d{1,2})$
118- type: git
119url: https://github.com/KhronosGroup/SPIRV-Tools.git
120tag: v2023.2
121commit: 44d72a9b36702f093dd20815561a56778b2d181e
122dest: third_party/spirv-tools
123x-checker-data:
124type: git
125tag-pattern: ^v(\d{4}\.\d{1})$
126- type: git
127url: https://github.com/KhronosGroup/SPIRV-Headers.git
128tag: sdk-1.3.250.1
129commit: 268a061764ee69f09a477a695bf6a11ffe311b8d
130dest: third_party/spirv-headers
131x-checker-data:
132type: git
133tag-pattern: ^sdk-([\d.]+)$
134- type: git
135url: https://github.com/KhronosGroup/glslang.git
136tag: 12.2.0
137commit: d1517d64cfca91f573af1bf7341dc3a5113349c0
138dest: third_party/glslang
139
140
141
142
143- name: gpt4all
144buildsystem: simple
145build-commands:
146- git submodule update --init --recursive
147- mkdir build
148- cmake -S ./gpt4all-chat -B build -DKOMPUTE_OPT_USE_BUILT_IN_VULKAN_HEADER=OFF -DKOMPUTE_OPT_USE_BUILT_IN_FMT=OFF -DCMAKE_INSTALL_PREFIX=/app
149- cmake --build build --config Release -- -j
150- cmake --install build --prefix "/app"
151- install -Dm644 logo.svg /app/share/icons/hicolor/scalable/apps/io.gpt4all.gpt4all.svg
152- install -Dm644 io.gpt4all.gpt4all.desktop /app/share/applications/io.gpt4all.gpt4all.desktop
153- install -Dm644 io.gpt4all.gpt4all.appdata.xml /app/share/appdata/io.gpt4all.gpt4all.appdata.xml
154sources:
155- type: git
156url: https://github.com/nomic-ai/gpt4all
157tag: v2.4.19
158commit: 84905aa28171545542fc653dbeca501ae5af383e
159- type: file
160url: https://raw.githubusercontent.com/nomic-ai/gpt4all/main/gpt4all-chat/icons/logo.svg
161sha256: 4c4e8476d0e2020585b69c6e2fc9e7d0cb12cbb36aa7b83c3a2e48ed4a9a424c
162- type: file
163path: io.gpt4all.gpt4all.desktop
164- type: file
165path: io.gpt4all.gpt4all.appdata.xml
166
167