blob: 920aefedfe74e12ff614dc032b604b936af064fe (
plain)
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
|
# Maintainer: Jefferson Gonzalez <jgmdev@gmail.com>
pkgname=gpt4all-chat-git
_gitname=gpt4all
pkgver=3.3.0.r22.g767189d
pkgrel=1
pkgdesc="Cross platform Qt based GUI for GPT4All versions"
arch=('x86_64')
url="https://github.com/nomic-ai/gpt4all"
license=('MIT')
makedepends=('cmake' 'git' 'vulkan-tools' 'shaderc' 'qt6-tools')
depends=(
'qt6-base' 'qt6-httpserver' 'qt6-declarative' 'qt6-svg'
'qt6-webengine' 'qt6-shadertools' 'qt6-5compat' 'qt6-wayland'
'python'
)
conflicts=('gpt4all-chat')
provides=('gpt4all-chat')
source=(
"${_gitname}::git+https://github.com/nomic-ai/gpt4all.git"
"gpt4all-chat.desktop"
"gpt4all-chat.sh"
)
sha256sums=(
'SKIP'
'16cd7d32166c493b1028c3e5c6a8437d3d81315c92076f5a94240e509a93a271'
'c8b8b5ab8b0badd9f74210fb26181b9fef48741e14256e3494cbbc46c8f98d9f'
)
pkgver() {
cd "${srcdir}/${_gitname}"
echo "$(git describe --long --tags --abbrev=7 --exclude='*[a-zA-Z][a-zA-Z]*' | sed -E 's/^[^0-9]*//;s/([^-]*-g)/r\1/;s/-/./g')"
}
prepare() {
cd "${srcdir}/${_gitname}"
git submodule update --init --recursive
mkdir -p gpt4all-chat/build
}
build() {
cd "${srcdir}/${_gitname}/gpt4all-chat/build"
cmake \
-DCMAKE_INSTALL_PREFIX=/opt/gpt4all-chat \
-DCMAKE_BUILD_TYPE=Release \
-DKOMPUTE_OPT_DISABLE_VULKAN_VERSION_CHECK=ON \
-DLLMODEL_CUDA=OFF \
-DCMAKE_CXX_FLAGS="-Wno-dangling-reference" \
..
make
}
package() {
cd "${srcdir}/${_gitname}/gpt4all-chat/build"
DESTDIR="${pkgdir}" make install
mv "${pkgdir}/opt/gpt4all-chat/bin/chat" "${pkgdir}/opt/gpt4all-chat/bin/gpt4all-chat"
mkdir -p "${pkgdir}/usr/bin"
mkdir -p "${pkgdir}/usr/share/applications"
mkdir -p "${pkgdir}/usr/share/icons/hicolor/scalable/apps"
cp "${srcdir}/gpt4all-chat.sh" "${pkgdir}/usr/bin/gpt4all-chat"
chmod 0755 "${pkgdir}/usr/bin/gpt4all-chat"
cp "${srcdir}/gpt4all-chat.desktop" "${pkgdir}/usr/share/applications/"
cp "../icons/gpt4all.svg" "${pkgdir}/usr/share/icons/hicolor/scalable/apps/gpt4all-chat.svg"
}
|