blob: 1502329adf624fbbc109805c8c5c91d164519b4f (
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
|
# Maintainer: Frederik Holm Strøm <aur@frederikstroem.com>
# Chatbox website: https://chatboxai.app/
# Chatbox GitHub: https://github.com/Bin-Huang/chatbox
_pkgname=Chatbox
pkgname="chatbox-appimage"
pkgver=1.6.1
pkgrel=1
pkgdesc="User-friendly Desktop Client App for AI Models/LLMs (GPT, Claude, Gemini, Ollama...)"
arch=('x86_64')
url="https://chatboxai.app"
license=('GPL-3.0')
depends=('fuse2')
provides=("$pkgname")
conflicts=("chatbox-bin" "chatbox-git")
options=(!strip)
_appimage="${_pkgname}-${pkgver}-${arch}.AppImage"
_pkgid="xyz.chatboxapp.app"
source=("https://download.chatboxai.app/releases/${_appimage}")
noextract=("$_appimage")
sha512sums=('8eb743ad5b431caa788f50061acce299089cba50b7bb23570f538b22d40b4bafcbf556a0c0ffbb1db21af2da1288c4acd500175916862744b70de3210999b841')
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=AppRun: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"
}
|