0c-ime

LOW
maintainer neo_chen 0 votes scanned 2026-10-21 15:32:06.139547
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: Neo_Chen <neochen1024+clda@gmail.com>
2
3pkgname=0c-ime
4pkgver=0.2.3
5pkgrel=1
6pkgdesc="Zhuyin (Bopomofo) input method with statistical and neural candidate selection, for Fcitx5 and IBus"
7arch=('x86_64')
8url="https://github.com/0c-biggo/0c-ime"
9license=('AGPL-3.0-only' 'CC-BY-SA-4.0' 'CC-BY-4.0' 'MIT' 'OGDL-Taiwan-1.0' 'Apache-2.0' 'LicenseRef-SCOWL')
10depends=('cairo' 'dbus' 'gdk-pixbuf2' 'glib2' 'glibc' 'gtk3' 'hicolor-icon-theme' 'libgcc' 'libsoup3'
11 'libstdc++' 'webkit2gtk-4.1')
12makedepends=('go' 'rust' 'pkgconf' 'fcitx5' 'ibus')
13optdepends=('fcitx5: Fcitx5 frontend'
14 'ibus: IBus frontend'
15 'python: neural candidate selection and punctuation'
16 'python-numpy: neural candidate selection and punctuation'
17 'python-onnxruntime: neural candidate selection and punctuation')
18source=("$url/releases/download/v$pkgver/$pkgname-$pkgver.tar.xz")
19sha256sums=('f8b48547318cd6b9cd1a8452261c3636a2aaa694bd0faae3391f0c79fa71465b')
20
21_make() {
22 make PREFIX=/usr LIBEXECDIR=/usr/lib VERSION="$pkgver" "$@"
23}
24
25prepare() {
26 cd "$pkgname-$pkgver"
27 export GOPATH="$srcdir/gopath" GOFLAGS="-modcacherw"
28 go mod download
29 export RUSTUP_TOOLCHAIN=stable
30 cargo fetch --locked --manifest-path platforms/settings/Cargo.toml \
31 --target "$(rustc -vV | sed -n 's/^host: //p')"
32}
33
34build() {
35 cd "$pkgname-$pkgver"
36 export GOPATH="$srcdir/gopath" GOFLAGS="-modcacherw" GOPROXY=off
37 export CGO_CPPFLAGS="$CPPFLAGS" CGO_CFLAGS="$CFLAGS" CGO_CXXFLAGS="$CXXFLAGS" CGO_LDFLAGS="$LDFLAGS"
38 export RUSTUP_TOOLCHAIN=stable CARGO_NET_OFFLINE=true
39 # the Fcitx5 addon is compiled and linked in one step with CXXFLAGS only
40 export CXXFLAGS="$CXXFLAGS $LDFLAGS"
41 _make build GOBUILDFLAGS="-buildmode=pie -trimpath -mod=readonly"
42}
43
44check() {
45 cd "$pkgname-$pkgver"
46 build/system/0c-server -check-data -data assets/data
47}
48
49package() {
50 cd "$pkgname-$pkgver"
51 _make install DESTDIR="$pkgdir"
52 install -Dm644 LICENSE legal/copyright legal/CC-BY-SA-4.0.txt legal/UNICODE-NOTICE.txt \
53 -t "$pkgdir/usr/share/licenses/$pkgname/"
54}
55

Scan history

Scanned at (UTC)SeverityRules
2026-10-21 15:32:06 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