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

1pkgname=n.e.k.o-bin
2pkgver=0.8.3
3pkgrel=1
4provides=('n.e.k.o')
5conflicts=('n.e.k.o')
6pkgdesc="N.E.K.O., a digital life that yearns to understand, connect, and grow with us."
7arch=('x86_64')
8url="https://github.com/Project-N-E-K-O/N.E.K.O"
9license=('Apache-2.0')
10depends=('gtk3' 'nss' 'libxtst' 'libsecret' 'xdg-utils')
11makedepends=()
12source=("$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")
13sha256sums=('769b99970c13248129fd625c22e65b442fa6829ced2599347a8c7242a0fb6257')
14
15package() {
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
33cd /usr/lib/neko
34exec ./n.e.k.o "$@"
35EOF
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]
42Type=Application
43Name=Project N.E.K.O
44Comment=N.E.K.O., a digital life that yearns to understand, connect, and grow with us.
45Exec=n.e.k.o
46Icon=neko-bin
47Categories=Utility;
48# 分类暂时分到 Utility,后面再看
49Terminal=false
50StartupNotify=true
51EOF
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)SeverityRules
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

Report a package

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

0 / 4000
Your suggestion