otk-git

LOW
maintainer a_i 0 votes scanned 2026-10-25 07:42:02.731731
View on AUR
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
3pkgname=otk-git
4_pkgname=otk
5_release_ver=0.1.0.alpha.1.r0
6pkgver=0.1.0.alpha.1.r0.g2201d86
7pkgrel=1
8pkgdesc='Open Terminal Kit, a browser UI for coding-agent backends (git version)'
9arch=('x86_64' 'aarch64')
10url='https://github.com/alexindigo/otk'
11license=('LGPL-3.0-only')
12depends=('deno')
13makedepends=('git')
14optdepends=('opencode: coding-agent backend; connect OTK to your running server')
15provides=('otk')
16conflicts=('otk')
17options=('!debug')
18source=("otk::git+${url}.git"
19 'otk.sh'
20 'otk.service')
21sha256sums=('SKIP'
22 'bb154f3edcd132254b05923b81aad940a34d2fd3ecc3768422ed381f29329ee4'
23 '83b504049fa51c7d0c6089d5107a33dec11adf36647cba2ccc65dc13a0f87bfe')
24
25pkgver() {
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
36build() {
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
54package() {
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)SeverityRules
2026-10-25 07:42:02 Low 1

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion