n.e.k.o-bin
maintainer JohnChiao
· 1 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The package installs a prebuilt binary from the project's official GitHub release, which is a normal distribution method; the low severity is due to the binary nature and unverifiable origin, but it comes from a legitimate project source with no signs of malicious behavior.
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.
LOW
AI review
llm_review
An AI model (qwen/qwen3-235b-a22b-2507) reviewed this and agrees it is LOW (confidence 95%): The package installs a prebuilt binary from the project's official GitHub release, which is a normal distribution method; the low severity is due to the binary nature and unverifiable origin, but it comes from a legitimate project source with no signs of malicious behavior.
PKGBUILD
1
pkgname=n.e.k.o-bin
2
pkgver=0.8.3
3
pkgrel=1
4
provides=('n.e.k.o')
5
conflicts=('n.e.k.o')
6
pkgdesc="N.E.K.O., a digital life that yearns to understand, connect, and grow with us."
7
arch=('x86_64')
8
url="https://github.com/Project-N-E-K-O/N.E.K.O"
9
license=('Apache-2.0')
10
depends=('gtk3' 'nss' 'libxtst' 'libsecret' 'xdg-utils')
11
makedepends=()
12
source=("$pkgname-$pkgver.tar.gz::https://github.com/Project-N-E-K-O/N.E.K.O/releases/download/v$pkgver/N.E.K.O_${pkgver}_linux.tar.gz")
13
sha256sums=('769b99970c13248129fd625c22e65b442fa6829ced2599347a8c7242a0fb6257')
14
15
package() {
16
cd "$srcdir"
17
local _srcdir="N.E.K.O_${pkgver}_linux"
18
cd "$_srcdir"
19
20
# 1. 将所有内容(二进制+资源)安装到 /usr/lib/neko
21
mkdir -p "$pkgdir/usr/lib/neko"
22
cp -r -p . "$pkgdir/usr/lib/neko/"
23
24
# 2. 给二进制文件添加可执行权限
25
chmod +x "$pkgdir/usr/lib/neko/n.e.k.o"
26
27
# 3. 创建启动脚本(命令执行层面的别名)并解决相对路径问题
28
mkdir -p "$pkgdir/usr/bin"
29
30
# 主脚本:用户输入 n.e.k.o 时执行
31
cat > "$pkgdir/usr/bin/n.e.k.o" << 'EOF'
32
#!/bin/sh
33
cd /usr/lib/neko
34
exec ./n.e.k.o "$@"
35
EOF
36
chmod +x "$pkgdir/usr/bin/n.e.k.o"
37
38
# 4. 创建 .desktop 菜单项
39
mkdir -p "$pkgdir/usr/share/applications"
40
cat > "$pkgdir/usr/share/applications/$pkgname.desktop" << EOF
41
[Desktop Entry]
42
Type=Application
43
Name=Project N.E.K.O
44
Comment=N.E.K.O., a digital life that yearns to understand, connect, and grow with us.
45
Exec=n.e.k.o
46
Icon=neko-bin
47
Categories=Utility;
48
# 分类暂时分到 Utility,后面再看
49
Terminal=false
50
StartupNotify=true
51
EOF
52
53
# 5. 自动提取资源中的图标并安装到 pixmaps
54
# 优先查找常见图标文件名(支持 png/svg/ico)
55
ICON_FILE="resources/icon.png"
56
57
if [ -f "$ICON_FILE" ]; then
58
# 根据文件扩展名决定目标名称
59
EXT="${ICON_FILE##*.}"
60
install -Dm644 "$ICON_FILE" "$pkgdir/usr/share/pixmaps/neko-bin.${EXT}"
61
else
62
# 如果没找到特定名称,随便找一张图片作为图标(如第一张 png)
63
FALLBACK_ICON=$(find "$pkgdir/usr/lib/neko" -type f -iname "*.png" -print -quit)
64
if [ -n "$FALLBACK_ICON" ]; then
65
install -Dm644 "$FALLBACK_ICON" "$pkgdir/usr/share/pixmaps/neko-bin.png"
66
fi
67
fi
68
}
69
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-08-03 00:08:14 | LOW | 2 |
| 2026-08-02 00:16:08 | LOW | 2 |
| 2026-08-01 00:11:18 | LOW | 2 |
| 2026-07-31 00:14:10 | LOW | 2 |
| 2026-07-30 00:17:23 | LOW | 2 |
| 2026-07-29 00:25:53 | LOW | 2 |
| 2026-07-28 00:07:28 | LOW | 2 |
| 2026-07-27 01:34:00 | LOW | 2 |