omo-desktop-bin
LOW
maintainer minpeter
0 votes
scanned 2026-08-31 01:44:31.582560
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: OmO Desktop maintainers <minpeter@users.noreply.github.com>
2
3
pkgname=omo-desktop-bin
4
pkgver=0.0.33
5
pkgrel=1
6
pkgdesc='Desktop control surface for local coding agents'
7
arch=('x86_64')
8
url='https://github.com/minpeter/omo-desktop-releases'
9
license=('MIT')
10
depends=(
11
'alsa-lib'
12
'at-spi2-core'
13
'cairo'
14
'dbus'
15
'expat'
16
'gdk-pixbuf2'
17
'glib2'
18
'glibc'
19
'gtk3'
20
'hicolor-icon-theme'
21
'libcups'
22
'libdrm'
23
'libgcc'
24
'libstdc++'
25
'libx11'
26
'libxcb'
27
'libxcomposite'
28
'libxdamage'
29
'libxext'
30
'libxfixes'
31
'libxkbcommon'
32
'libxrandr'
33
'mesa'
34
'nspr'
35
'nss'
36
'pango'
37
'systemd-libs'
38
'xdg-utils'
39
'zlib'
40
)
41
provides=("omo-desktop=$pkgver")
42
conflicts=('omo-desktop' 't3code-bin' 't3code')
43
replaces=('t3code-bin')
44
options=('!debug' '!strip')
45
46
_appimage="OmO-${pkgver}-${CARCH}.AppImage"
47
source=(
48
"$_appimage::https://github.com/minpeter/omo-desktop-releases/releases/download/v${pkgver}/$_appimage"
49
"${pkgname}-${pkgver}-LICENSE::https://github.com/minpeter/omo-desktop-releases/releases/download/v${pkgver}/LICENSE"
50
)
51
sha256sums=(
52
'46a5fcd872d07a472d58107213d62a22402fafada9ebf1c3a26e343b100793db' # AppImage
53
'884447aa26618ad7e223c3fab32357c6a11a07da625efb49ec7840d77666e3f1' # release license
54
)
55
56
prepare() {
57
chmod +x "$srcdir/$_appimage"
58
rm -rf "$srcdir/squashfs-root"
59
"$srcdir/$_appimage" --appimage-extract >/dev/null
60
61
if [[ ! -x "$srcdir/squashfs-root/AppRun" ||
62
! -f "$srcdir/squashfs-root/chrome-sandbox" ]]; then
63
echo 'The AppImage payload is missing its launcher or Chromium sandbox.' >&2
64
return 1
65
fi
66
}
67
68
package() {
69
install -d "$pkgdir/opt/$pkgname"
70
cp -a --no-preserve=ownership "$srcdir/squashfs-root/." "$pkgdir/opt/$pkgname/"
71
chmod -R u=rwX,go=rX "$pkgdir/opt/$pkgname"
72
chmod 4755 "$pkgdir/opt/$pkgname/chrome-sandbox"
73
74
install -Dm755 /dev/stdin "$pkgdir/usr/bin/omo-desktop" <<'EOF'
75
#!/bin/sh
76
set -eu
77
78
gpu_available=false
79
for render_node in /dev/dri/renderD*; do
80
if [ -r "$render_node" ]; then
81
gpu_available=true
82
break
83
fi
84
done
85
if [ "$gpu_available" = false ]; then
86
set -- --disable-gpu "$@"
87
fi
88
# Chromium's shared-memory path becomes unreliable below 256 MiB (262144 KiB).
89
shm_available_kib=0
90
if [ -d /dev/shm ] && [ -w /dev/shm ]; then
91
shm_available_kib="$(df -Pk /dev/shm | awk 'NR == 2 { print $4 }')"
92
fi
93
if [ "${shm_available_kib:-0}" -lt 262144 ]; then
94
set -- --disable-dev-shm-usage "$@"
95
fi
96
97
exec /opt/omo-desktop-bin/AppRun "$@"
98
EOF
99
100
local icon size_dir
101
for icon in "$srcdir"/squashfs-root/usr/share/icons/hicolor/*/apps/omo.png; do
102
size_dir="${icon%/apps/omo.png}"
103
install -Dm644 "$icon" \
104
"$pkgdir/usr/share/icons/hicolor/${size_dir##*/}/apps/omo.png"
105
done
106
107
install -Dm644 /dev/stdin "$pkgdir/usr/share/applications/omo.desktop" <<'EOF'
108
[Desktop Entry]
109
Name=OmO
110
Comment=Desktop control surface for local coding agents
111
Exec=omo-desktop %U
112
TryExec=omo-desktop
113
Terminal=false
114
Type=Application
115
Icon=omo
116
StartupWMClass=omo
117
Categories=Development;
118
MimeType=x-scheme-handler/omo;x-scheme-handler/omo-dev;
119
EOF
120
121
install -Dm644 "$srcdir/${pkgname}-${pkgver}-LICENSE" \
122
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
123
}
124
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-08-31 01:44:31 | Low | 1 |