fcitx5-qingjian-git

LOW
maintainer IDaPrc 0 votes scanned 2026-09-17 11:25:44.432472
View on AUR
Why flagged

The package builds from a publicly accessible Git repository and downloads data files from the official project's GitHub releases; while the data sources are not on a whitelist, they are non-executable assets (model and dictionary files) with fixed checksums, posing minimal risk.

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 builds from a publicly accessible Git repository and downloads data files from the official project's GitHub releases; while the data sources are not on a whitelist, they are non-executable assets (model and dictionary files) with fixed checksums, posing minimal risk.

PKGBUILD

1# Maintainer: Your Name <your.email@example.com>
2pkgname=fcitx5-qingjian-git
3_pkgname=fcitx5-qingjian
4pkgver=0.1.0.r62.g577fbbf
5pkgrel=1
6pkgdesc="青简输入法 Linux/Fcitx5 移植版(Rust Server + Fcitx5 插件 + 离线数据模型)"
7arch=('x86_64')
8url="https://github.com/qingjian-team/qingjian"
9license=('GPL-3.0-or-later')
10depends=('fcitx5' 'openssl' 'gcc-libs' 'glibc')
11makedepends=('cargo' 'cmake' 'extra-cmake-modules' 'pkgconf' 'git')
12provides=("${_pkgname}")
13conflicts=("${_pkgname}")
14install="${_pkgname}.install"
15
16# 源码与移植说明:
17# 青简官方 (qingjian-team/qingjian) 目前暂未正式支持 Linux;
18# 本包使用 Aozora-Wings 的 Linux/Fcitx5 移植仓库作为源码基准:
19# https://github.com/Aozora-Wings/qingjian-nixos
20source=(
21 "qingjian::git+https://github.com/Aozora-Wings/qingjian-nixos.git"
22 "qingjian-data.tar.gz::https://github.com/qingjian-team/qingjian/releases/download/data/qingjian-data.tar.gz"
23 "model.qjm::https://github.com/qingjian-team/qingjian/releases/download/data/model.qjm"
24 "qingjian-server.service"
25)
26noextract=("qingjian-data.tar.gz")
27sha256sums=('SKIP'
28 'f8db877f70a2cdadab78a0575fb88d03fb51d9b042d28b5a2d3b4dad12c2e7ef'
29 'eed5bd0bda0c7bd8b43d1acb2dc4678d4bbe295bd47b2b0d4eeace0af9daff4d'
30 '19646e428a55d8f9070b0ea319ceeee71c03c3f6171ce930fc22465b6bab6285')
31
32pkgver() {
33 cd "${srcdir}/qingjian"
34 printf "0.1.0.r%s.g%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
35}
36
37prepare() {
38 cd "${srcdir}/qingjian"
39
40 # 清理移植仓库内残留的 CMake 临时构建缓存
41 rm -rf apps/linux/fcitx5/build
42
43 # 预拉取依赖
44 cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
45}
46
47build() {
48 cd "${srcdir}/qingjian"
49
50 # 1. 编译 Linux 后端 Server(排除 macOS 依赖)
51 cargo build --frozen --release -p qingjian-linux-server
52
53 # 2. 编译 Fcitx5 C++ 插件 (qingjian.so)
54 cmake -B build-fcitx5 -S apps/linux/fcitx5 \
55 -DCMAKE_BUILD_TYPE=Release \
56 -DCMAKE_INSTALL_PREFIX=/usr
57 cmake --build build-fcitx5
58}
59
60package() {
61 cd "${srcdir}/qingjian"
62
63 # 1. 安装 Rust Server 进程
64 install -Dm755 "target/release/qingjian-server" "${pkgdir}/usr/bin/qingjian-server"
65
66 # 2. 安装 Fcitx5 插件 (qingjian.so 与 qingjian.conf)
67 DESTDIR="${pkgdir}" cmake --install build-fcitx5
68
69 # 3. 安装 数据包 (generated 词库 + model 整句模型)
70 local datadir="${pkgdir}/usr/share/qingjian"
71 install -d "${datadir}/data/generated"
72 install -d "${datadir}/data/model"
73
74 # 解包词库并清理 macOS 隐藏元数据
75 bsdtar -xzf "${srcdir}/qingjian-data.tar.gz" -C "${datadir}/data/generated"
76 find "${datadir}/data/generated" -name '._*' -delete
77
78 # 安装整句模型文件
79 install -Dm644 "${srcdir}/model.qjm" "${datadir}/data/model/model.qjm"
80
81 # 复制辅助资源(表情、等级词典等)
82 if [ -d "assets" ]; then
83 install -d "${datadir}/assets"
84 cp -r assets/* "${datadir}/assets/"
85 fi
86
87 # 4. 安装 Systemd User 守护服务
88 install -Dm644 "${srcdir}/qingjian-server.service" \
89 "${pkgdir}/usr/lib/systemd/user/qingjian-server.service"
90
91 # 5. 安装 License 许可协议
92 if [ -f "LICENSE" ]; then
93 install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
94 fi
95}
96

Scan history

Scanned at (UTC)SeverityRules
2026-09-17 11:25:44 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