blob: 5c454e967b98462844de68ee35e99c387ba6ef4d (
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
|
# Maintainer: redponike <proton (dot) me>
# Contributor: Frederik Holm Strøm <aur@frederikstroem.com>
# Contributor: Asuka Minato <i at asukaminato dot eu dot org>
# Contributor: Aron Young <tkf6fkt at gmail dot com>
_pkgname=Chatbox
pkgname="chatbox-bin"
pkgver=1.11.12
pkgrel=1
pkgdesc="User-friendly Desktop Client App for AI Models/LLMs (GPT, Claude, Gemini, Ollama...)"
arch=('x86_64')
url="https://chatboxai.app"
license=('custom')
depends=('fuse2')
provides=("$pkgname")
conflicts=("chatbox-appimage" "chatbox-git")
options=(!strip)
_appimage="${_pkgname}-${pkgver}-${arch}.AppImage"
_pkgid="xyz.chatboxapp.app"
source=("https://download.chatboxai.app/releases/${_appimage}")
noextract=("$_appimage")
sha512sums=('c382c4ca4e234683ef136190dc3efeea43213d203ab450c30feb37223de0b57ee29907671bcb99413b6c76b3b2bd92b660384544057b3a0618fb8e62f4f9d838')
prepare() {
# Make the AppImage executable
chmod +x "$_appimage"
# Extract the AppImage
"./$_appimage" --appimage-extract
# Update the Exec line in the desktop entry file
sed -i -E "s:Exec=.*:Exec=/opt/${_pkgname}/${_appimage}:" "squashfs-root/${_pkgid}.desktop"
}
package() {
# Install the AppImage and create a symlink
install -Dpm755 "${_appimage}" "${pkgdir}/opt/${_pkgname}/${_appimage}"
install -dm755 "${pkgdir}/usr/bin"
ln -s "/opt/${_pkgname}/${_appimage}" "${pkgdir}/usr/bin/${_pkgname}"
# Install the desktop entry file
install -Dm644 "${srcdir}/squashfs-root/${_pkgid}.desktop" "${pkgdir}/usr/share/applications/${_pkgid}.desktop"
# Install the icon
install -dm755 "${pkgdir}/usr/share/pixmaps/"
cp --no-preserve=mode,ownership "${srcdir}/squashfs-root/${_pkgid}.png" "${pkgdir}/usr/share/pixmaps/${_pkgid}.png"
# License not provided by upstream - The developer was contacted / awaiting response
# install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|