blob: 6b2d4eeecf42247220d1ef80fec48742e132483f (
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
|
pkgname=kilo-cli-git
pkgver=r24648.5f4c96bad4
pkgrel=1
pkgdesc='Kilo is the all-in-one agentic engineering platform.'
arch=('x86_64')
url='https://github.com/Kilo-Org/kilocode'
license=('MIT')
makedepends=('git')
depends=('bun')
source=(
"git+https://github.com/Kilo-Org/kilocode.git"
)
sha256sums=(
'SKIP'
)
provides=('kilo-bin')
conflicts=('kilo-bin')
# Needed due to bun packaging method
options=(!strip)
pkgver() {
cd "kilocode"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "kilocode"
bun i
cd "packages/opencode"
bun run build --single
}
package() {
cd "kilocode/packages/opencode"
install -Dm 755 dist/@kilocode/cli-linux-x64/bin/kilo -t "${pkgdir}/usr/bin"
install -Dm 755 dist/@kilocode/cli-linux-x64/bin/kilo-sandbox-mutation-worker.js -t "${pkgdir}/usr/bin"
mkdir -p "${pkgdir}/usr/bin/tree-sitter"
install -Dm 755 dist/@kilocode/cli-linux-x64/bin/tree-sitter/* -t "${pkgdir}/usr/bin/tree-sitter"
}
|