otk-git
LOW
maintainer a_i
0 votes
scanned 2026-10-25 07:42:02.731731
Why flagged
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
Triggered rules
Low
Few votes, recently uploaded
zero_votes_recent
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
PKGBUILD
1
# Maintainer: Alex Indigo <ai@aegis.one>
2
3
pkgname=otk-git
4
_pkgname=otk
5
_release_ver=0.1.0.alpha.1.r0
6
pkgver=0.1.0.alpha.1.r0.g2201d86
7
pkgrel=1
8
pkgdesc='Open Terminal Kit, a browser UI for coding-agent backends (git version)'
9
arch=('x86_64' 'aarch64')
10
url='https://github.com/alexindigo/otk'
11
license=('LGPL-3.0-only')
12
depends=('deno')
13
makedepends=('git')
14
optdepends=('opencode: coding-agent backend; connect OTK to your running server')
15
provides=('otk')
16
conflicts=('otk')
17
options=('!debug')
18
source=("otk::git+${url}.git"
19
'otk.sh'
20
'otk.service')
21
sha256sums=('SKIP'
22
'bb154f3edcd132254b05923b81aad940a34d2fd3ecc3768422ed381f29329ee4'
23
'83b504049fa51c7d0c6089d5107a33dec11adf36647cba2ccc65dc13a0f87bfe')
24
25
pkgver() {
26
cd "${srcdir}/${_pkgname}"
27
local version
28
version=$(git describe --long --tags --match 'v[0-9]*' 2>/dev/null) || version=''
29
if [[ -n $version ]]; then
30
printf '%s\n' "$version" | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//'
31
else
32
printf '%s.g%s\n' "$_release_ver" "$(git rev-parse --short HEAD)"
33
fi
34
}
35
36
build() {
37
cd "${srcdir}/${_pkgname}"
38
# Tasks invoke deno by name. Do not pick up a separate user installation.
39
export PATH=/usr/bin:/bin
40
export DENO_NO_UPDATE_CHECK=1
41
export DENO_DIR="${srcdir}/build-cache"
42
/usr/bin/deno install --frozen
43
/usr/bin/deno task build:web
44
45
# Pathfinder imports route modules dynamically; cache every route as well
46
# as the static application graph. Deno also resolves configured npm imports;
47
# preserve that complete dependency set for offline startup.
48
export DENO_DIR="${srcdir}/runtime-cache"
49
local -a routes
50
mapfile -d '' routes < <(find core/http/routes -type f -name '*.ts' -print0)
51
/usr/bin/deno cache --frozen --node-modules-dir=none main.ts "${routes[@]}"
52
}
53
54
package() {
55
cd "${srcdir}/${_pkgname}"
56
install -dm755 "${pkgdir}/usr/lib/otk/web"
57
cp -a main.ts application.ts deno.json deno.lock core defaults packages \
58
"${pkgdir}/usr/lib/otk/"
59
cp -a web/dist "${pkgdir}/usr/lib/otk/web/"
60
install -dm755 "${pkgdir}/usr/lib/otk/deno-cache"
61
cp -a "${srcdir}/runtime-cache/npm" "${srcdir}/runtime-cache/remote" \
62
"${pkgdir}/usr/lib/otk/deno-cache/"
63
# Caches are read-only package assets, never a build-user private directory.
64
chmod -R u=rwX,go=rX "${pkgdir}/usr/lib/otk"
65
install -Dm755 "${srcdir}/otk.sh" "${pkgdir}/usr/bin/otk"
66
install -Dm644 "${srcdir}/otk.service" "${pkgdir}/usr/lib/systemd/user/otk.service"
67
install -Dm644 README.md "${pkgdir}/usr/share/doc/otk/README.md"
68
install -Dm644 defaults/otk.toml "${pkgdir}/usr/share/doc/otk/otk.toml.example"
69
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
70
}
71
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-10-25 07:42:02 | Low | 1 |