blob: 526e208c99ad027c1eed2243ab5499b64832bc96 (
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
71
72
73
74
75
76
77
78
79
80
|
# Maintainer: NourEddine Yassine <NourEddineX at protonmail dot com>
# Contributor: Albert Latham <me@albertlatham.com>
pkgname=abacusai-bin
pkgver=2.3.4
pkgrel=1
pkgdesc="A powerful desktop AI assistant with agentic browsing, listening, coding CLI and editor"
arch=('x86_64' 'aarch64')
url="https://github.com/abacusai/deepagent-releases"
license=('custom')
depends=()
options=(!debug)
optdepends=('libgnome-keyring: for keyring support'
'bash-completion: for bash completions'
'zsh-completions: for zsh completions')
provides=('abacusai-bin')
conflicts=('deepagent-bn' 'deepagent' 'codellm' 'codellm-bin')
source_x86_64=("https://github.com/abacusai/deepagent-releases/releases/download/${pkgver}/AbacusAI-linux-x64-${pkgver}.tar.gz")
source_aarch64=("https://github.com/abacusai/deepagent-releases/releases/download/${pkgver}/AbacusAI-linux-arm64-${pkgver}.tar.gz")
sha256sums_x86_64=('1cd444e4107f66e802909aa4f5b35ad1972e32fd178c9b482edfaae1a05ac397')
sha256sums_aarch64=('63f5cdfd941c623a55cbc59595bb0bf6b69ec0ee9a490828dd6c39b56a168321')
package() {
cd "$srcdir"
# Create installation directory
install -dm755 "$pkgdir/opt/abacusai"
install -dm755 "$pkgdir/usr/bin"
install -dm755 "$pkgdir/usr/share/applications"
install -dm755 "$pkgdir/usr/share/pixmaps"
# Copy application files
cp -r ./* "$pkgdir/opt/abacusai/"
# Make the main executable... executable
chmod +x "$pkgdir/opt/abacusai/abacusai-desktop"
# Create symlink in /usr/bin
ln -s "/opt/abacusai/abacusai-desktop" "$pkgdir/usr/bin/abacusai-desktop"
# Create desktop entry
cat > "$pkgdir/usr/share/applications/abacusai.desktop" << EOF
[Desktop Entry]
Name=AbacusAI
Comment=AI code editor that enhances developer productivity
Exec=/opt/abacusai/abacusai-desktop %U
Terminal=false
Type=Application
Icon=abacusai
StartupWMClass=AbacusAI
Categories=Development;IDE;
MimeType=text/plain;inode/directory;
EOF
# Install icon (assuming there's an icon in the package)
if [ -f "$pkgdir/opt/abacusai/resources/app/resources/linux/code.png" ]; then
install -Dm644 "$pkgdir/opt/abacusai/resources/app/resources/linux/code.png" "$pkgdir/usr/share/pixmaps/abacusai.png"
fi
# Install bash completions
if [ -f "$pkgdir/opt/abacusai/resources/completions/bash/abacusai-app" ]; then
install -dm755 "$pkgdir/usr/share/bash-completion/completions"
install -Dm644 "$pkgdir/opt/abacusai/resources/completions/bash/abacusai-app" \
"$pkgdir/usr/share/bash-completion/completions/abacusai"
fi
# Install zsh completions
if [ -f "$pkgdir/opt/abacusai/resources/completions/zsh/_abacusai-app" ]; then
install -dm755 "$pkgdir/usr/share/zsh/site-functions"
install -Dm644 "$pkgdir/opt/abacusai/resources/completions/zsh/_abacusai-app" \
"$pkgdir/usr/share/zsh/site-functions/_abacusai-app"
elif [ -f "$pkgdir/opt/abacusai/resources/completions/zsh/abacusai-app" ]; then
# Alternative: if the zsh completion file is named 'abacusai' instead of '_abacusai'
install -dm755 "$pkgdir/usr/share/zsh/site-functions"
install -Dm644 "$pkgdir/opt/abacusai/resources/completions/zsh/abacusai-app" \
"$pkgdir/usr/share/zsh/site-functions/_abacusai-app"
fi
}
|