blob: 1ac01f132c13a6f44af748fabc5274a23a1000c6 (
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
|
# Maintainer: Coraline Shuryn <coraline.shuryn@gmail.com>
pkgname=gemini-cli-git
_pkgname=gemini-cli
epoch=1
pkgver=r5876.g3061555d28
pkgrel=1
pkgdesc="An open-source AI agent that brings the power of Gemini directly into your terminal (git version)"
arch=('x86_64' 'aarch64')
url="https://github.com/google-gemini/gemini-cli"
license=('Apache-2.0')
depends=(
'glib2'
'glibc'
'libgcc'
'libsecret'
'libstdc++'
'nodejs'
)
makedepends=(
'git'
'jq'
'node-gyp'
'npm'
'python'
)
optdepends=(
'ripgrep: file content search'
'wl-clipboard: clipboard image pasting on Wayland'
'xclip: clipboard image pasting on X11'
'xdg-utils: opening URLs in default browser'
)
provides=("google-gemini-cli" "gemini-cli")
conflicts=("google-gemini-cli" "gemini-cli" "google-gemini-cli-git")
replaces=("google-gemini-cli-git")
source=("$_pkgname::git+$url.git"
"system-defaults.json")
sha256sums=('SKIP'
'55bcdfa1000a07b81c817fb8d20cae5f4bb178959f2a55b9aaa49be7f68710e7')
pkgver() {
cd "$_pkgname"
printf "r%s.g%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$srcdir/$_pkgname"
}
build() {
cd "$srcdir/$_pkgname"
npm install
npm run bundle
npm run docs:settings
}
package() {
cd "$srcdir/$_pkgname"
npm pack --silent
local tarball=$(find . -maxdepth 1 -name "*.tgz")
npm install -g "$tarball" --prefix "$pkgdir/usr" --omit=dev
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm644 "$srcdir/system-defaults.json" "$pkgdir/etc/gemini-cli/system-defaults.json"
}
|