ibus-mozc-with-jp-dict
maintainer phoepsilonix
· 10 votes
· base
mozc-with-jp-dict
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The package downloads dictionary data (SudachiDict, MeCab) from non-whitelisted but project-plausible S3 and GitHub sources; these are non-executable data files used to extend Mozc's dictionary, not code, so the worst-case impact of a source swap is limited to data tampering, not code execution.
Triggered rules
LOW
AI review downgraded a static finding
llm_review
The static rules flagged this MEDIUM, but an AI model (qwen/qwen3-235b-a22b-07-25) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The package downloads dictionary data (SudachiDict, MeCab) from non-whitelisted but project-plausible S3 and GitHub sources; these are non-executable data files used to extend Mozc's dictionary, not code, so the worst-case impact of a source swap is limited to data tampering, not code execution.
1 higher static finding superseded - not the current verdict (shown for transparency)
MEDIUM
source=() URL on a non-standard host
source_untrusted_domain
One or more source=() URLs point to a host outside the trusted allowlist (github.com, gitlab.com, codeberg.org, pypi.org, …).
-
PKGBUILD:50
"http://sudachi.s3-website-ap-northeast-1.amazonaws.com/sudachidict-raw/${_sudachidict_date}/small_lex.zip"
PKGBUILD
1 offending line(s) highlighted
1
# $Id$
2
# shellcheck disable=SC2034,SC2148,SC2154
3
# Maintainer: Masato TOYOSHIMA <phoepsolonix at gmail dot com>
4
# Contributor: UTUMI Hirosi <utuhiro78 at yahoo dot co dot jp>
5
# Contributor: BrLi <brli at chakralinux dot org>
6
# Contributor: Nocifer <apmichalopoulos at gmail dot com>
7
# Contributor: Felix Yan <felixonmars@gmail.com>
8
# Contributor: ponsfoot <cabezon dot hashimoto at gmail dot com>
9
10
## Mozc compile option
11
_bldtype=Release
12
_mozc_commit=23e60227046494a962832989736bd5b4c6a580b7
13
_bcr_commit=d79dfab702994f66c567b6b7384f14e3cd51c2f7
14
_dict_to_mozc_commit=f6e4045f0f4eebd156c4397efef525aecf4657a6
15
_dict_to_mozc=v0.6.29
16
17
_branch=fcitx
18
# Sudachi Dictionary
19
_sudachidict_date=20260116
20
21
## follow the submodule commits in https://github.com/fcitx/mozc/tree/fcitx/src/third_party
22
_abseil_cpp_commit=987c57f3
23
_breakpad_commit=216cea7b
24
_gtest_commit=52eb8108
25
_gyp_commit=9ecf45e3
26
_japanese_usage_dictionary_commit=e5b3425
27
_protobuf_commit=4fbd1111a
28
_wil_commit=fc5dbf5
29
30
pkgbase=mozc-with-jp-dict
31
pkgname=("ibus-$pkgbase" "fcitx5-$pkgbase" "emacs-$pkgbase")
32
pkgver=3.33.6089.2
33
pkgrel=2
34
arch=('x86_64')
35
url="https://github.com/fcitx/mozc"
36
license=('Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND MIT AND NAIST-2003 AND Unicode-3.0 AND LicenseRef-Okinawa-Dictionary')
37
makedepends=('qt6-base' 'fcitx5' 'fcitx5-qt' 'bazelisk' 'git' 'python' 'mold' 'pkg-config' 'libibus' 'rustup' 'unzip')
38
options=(!lto)
39
source=("git+$url.git#commit=${_mozc_commit}"
40
"bcr::git+https://github.com/bazelbuild/bazel-central-registry.git#commit=${_bcr_commit}"
41
"git+https://github.com/abseil/abseil-cpp.git#commit=${_abseil_cpp_commit}"
42
"git+https://github.com/google/breakpad.git#commit=${_breakpad_commit}"
43
"git+https://github.com/google/googletest.git#commit=${_gtest_commit}"
44
"git+https://github.com/chromium/gyp.git#commit=${_gyp_commit}"
45
"git+https://github.com/hiroyuki-komatsu/japanese-usage-dictionary.git#commit=${_japanese_usage_dictionary_commit}"
46
"git+https://github.com/protocolbuffers/protobuf.git#commit=${_protobuf_commit}"
47
"git+https://github.com/microsoft/wil.git#commit=${_wil_commit}"
48
git+https://github.com/phoepsilonix/dict-to-mozc.git#tag=${_dict_to_mozc}
49
# https://github.com/WorksApplications/SudachiDict
50
"http://sudachi.s3-website-ap-northeast-1.amazonaws.com/sudachidict-raw/${_sudachidict_date}/small_lex.zip"
51
"http://sudachi.s3-website-ap-northeast-1.amazonaws.com/sudachidict-raw/${_sudachidict_date}/core_lex.zip"
52
"http://sudachi.s3-website-ap-northeast-1.amazonaws.com/sudachidict-raw/${_sudachidict_date}/notcore_lex.zip"
53
"LICENSE-SudachiDict::https://github.com/WorksApplications/SudachiDict/raw/develop/LEGAL"
54
# MeCab-unidic-Neologd https://github.com/neologd/mecab-unidic-neologd
55
https://github.com/phoepsilonix/mecab-unidic-neologd/raw/refs/heads/master/seed/mecab-unidic-user-dict-seed.20200910.csv.xz
56
LICENSE-MeCab-unidic-Neologd::https://github.com/phoepsilonix/mecab-unidic-neologd/raw/refs/heads/master/COPYING
57
# MeCab-ipadic-Neologd https://github.com/neologd/mecab-ipadic-neologd
58
https://github.com/phoepsilonix/mecab-ipadic-neologd/raw/refs/heads/master/seed/mecab-user-dict-seed.20200910.csv.xz
59
LICENSE-MeCab-ipadic-Neologd::https://github.com/neologd/mecab-ipadic-neologd/raw/refs/heads/master/COPYING
60
fcitx5-mozc-conf.patch
61
)
62
63
sha512sums=('48400ddb70b7ca971316ab28118daaa6985a7679028f41988c5188a72db1c20e390dd5d91ca99f67de773a2422f7083f7a8aa3913a141fa0a3e24c7d025bb1fc'
64
'69fe804bd9401200b8f3a15106f293c663674ed6b8cca1fcea1edb91af74787ac64c6c233f55cebef68e35399a20f364e2a9f2ca5e5efb64dd1e2b6aa6d654bf'
65
'f471c70ee7ad3951bafd80540d07ba32622946095b1696c6bb44d8131944d88a4d75c1077a6a5ca2fe122ad284cf76303e3c3432e5f253558977997d42e5e05d'
66
'f69046af8c37a2a8a441a258d5b8677016966cb43d8a3bb48badc78123a885d6179ff77d7885fd6c84130136a1b8931a98d35f9fcce3d03ed31a37a72ece0b9d'
67
'48cd60ccec0f9a5f262c8f8865bcc794c023fc8a421a071c179922e5176ecbe83e554430de30c70efee2d47c0b3defec687ba89d66124d372798d0394fe3c767'
68
'c8ce90c2493c05a78221befc4cbbcfcbe7a0bafb7bfa55403b085bf8c3fd069c4690d1ff59ef9e0e8a813bd3673588eb38e02ad81c42a6dd0be5246f27442169'
69
'91b878735e767ddf6f1fe3de61486c1e78936a0f683855e7c34a21c711f405899d3de369d2ff0a1910d65b1afc8c225d8d8b9398cf98d760f3afcfe42644fca2'
70
'0efcb80ec3a1f04f0f2e53ccd629eace4f6b9a2cbe5dae4c1b82140f11e174f8d023b8e35855def7e19c35da838c5b4fcfaa54748ee3534886caf1d35f55cccb'
71
'504066a457f77b510f492626c919b6fd7b61f77948bdddef0f7e43ae09bb4bf03cea7000fba91ae0123a94d3b39cac6dfac2010126849afe0a183727fe7b0fc1'
72
'475fc9da1a3a7239ed37de26ae09f4e1441f0de39bc9224324c53cf6c073ae2cd3e117a2dfb7ed641bc7fc64bff2bfbe08788114be58d5d34e28751da356f201'
73
'9a7850416dc3f45df659e50a36b1b333d7e0458a3519a4138fd165987cfe250d44c7708da2b8e4bc27f2d5e52f9a5131076b283e0ad769e3b7b8514c3fe7b36e'
74
'2d5f835ca604a90c12ee3d1790ce953be95f8e615d3ebfb1416d54725b58563cea23017a384696d331366aa2f43eeb21dc3309d0c5e23dee3379796a1b7d6c5b'
75
'71a3da3569df8de816cea968e82a8f01fb2f48d96c83ac82daad853d1cb70942fd4695130c2d41f1d06e5c83bdf618e351e5a20f17d8e2941614901bb34e3300'
76
'1a5b62c83a08781b44bd73f978a4024d93667df47b1a3f4c179096cbc32f28e803c50dca6b5b7ad20fb788d46797551c36ec1efb7782f4361b695e2e0a6060ca'
77
'3bdbda066130043e2e6403a8196a13b78a35313fc8797769eb8f76033349f420c68ac50a3e0604836c2cb577179f3e123af64a4e45aa05d14575f46707383d28'
78
'44b228264547c4628599b5888bd177dc3ddb845094a0acebcd3d7d7665e2cda8861f7210f80f0f40531f46581f565aab3489a6a2ff3aa75c058d552b23ea8d6e'
79
'5f3aa91974d7ef5633a013effb7acf729cec7d096b4740ceb9915fe7df10e2e45d0d76ffc2d36f1e16d322e7b3974653601a79b6ada05371de8fc7e80af14644'
80
'77a8c1d76a53627f8680f761f9c996b04e6b609bdb813cb5aedc7f8214d9b5f13aea53788814029f6f1e263c50ecb58feb5999e95d51fe7e4707b6a913d4bbe4'
81
'd964584b7b2ffaa031d527bf4e8c53e2aadffc87c073b5d87841172ad8fc0ea7b341161bac84b3c0df2ab7df8dff4655087a45debb2ec3839f2743e253f115e3')
82
83
84
# Set default rustup toolchain
85
export RUSTUP_TOOLCHAIN=stable
86
87
pkgver() {
88
cd "${srcdir}/mozc/src" || exit
89
# https://github.com/google/mozc/discussions/1429
90
# REVISION in mozc_version_template.bzl is no longer used by Bazel builds.
91
# REVISION will be probably removed once GYP builds are completely removed.
92
bazel build --config oss_linux --config stable_channel --config release_build base:mozc_version_txt >/dev/null 2>&1
93
source <(grep -E '^(MAJOR|MINOR|BUILD_OSS|REVISION)\s*=' bazel-bin/base/mozc_version.txt)
94
_bzr_ver="$MAJOR.$MINOR.$BUILD_OSS.$REVISION"
95
printf "%s" "${_bzr_ver}"
96
}
97
98
prepare() {
99
## Set rust/cargo home to the build source dir
100
#[ -z "$CARGO_HOME" ] && export CARGO_HOME="$srcdir/build/cargo-home"
101
#[ -z "$RUSTUP_HOME" ] && export RUSTUP_HOME="$srcdir/build/rustup-home"
102
103
cd "$srcdir/mozc" || exit
104
105
git submodule init
106
git config submodule.src/third_party/abseil-cpp.url "$srcdir/abseil-cpp"
107
git config submodule.src/third_party/breakpad.url "$srcdir/breakpad"
108
git config submodule.src/third_party/gtest.url "$srcdir/googletest"
109
git config submodule.src/third_party/gyp.url "$srcdir/gyp"
110
git config submodule.src/third_party/japanese_usage_dictionary.url "$srcdir/japanese-usage-dictionary"
111
git config submodule.src/third_party/protobuf.url "$srcdir/protobuf"
112
git config submodule.src/third_party/wil.url "$srcdir/wil"
113
git -c protocol.file.allow=always submodule update
114
115
cd "$srcdir/mozc/src" || exit
116
patch -p2 -i ${srcdir}/fcitx5-mozc-conf.patch
117
118
# use libstdc++ instead of libc++
119
sed '/stdlib=libc++/d;/-lc++/d' -i gyp/common.gypi
120
121
# nm -f posix (llvm-nm -f posix)
122
sed 's|nm \(.*\)\-f p |nm \1-f posix |' -i third_party/gyp/pylib/gyp/generator/ninja.py
123
124
# disable warning of ANDROID_NDK_HOME.
125
sed -e '/register_toolchains("@androidndk\/\/:all")/d' -i MODULE.bazel
126
127
rustup update stable
128
cd "${srcdir}/dict-to-mozc/" || exit
129
#sed -e "s|channel *=.*|channel = \"stable\"|" -i rust-toolchain.toml
130
#sed -e "/components.*/d" -i rust-toolchain.toml
131
# すだちを優先
132
msg '1. Build the rust program(dict-to-mozc), it may take some time...'
133
#rustup target list --installed | grep $(rustc -vV | sed -e 's|host: ||' -e 's|-gnu||p' -n) | grep -v musl && TARGET=$(rustup target list --installed | grep $(rustc -vV | sed -e 's|host: ||' -e 's|-gnu||p' -n)|grep -v musl|head -n1) || TARGET=$(rustup target list --installed | grep $(rustc -vV | sed -e 's|host: ||' -e 's|-gnu||p' -n)|grep musl|head -n1)
134
TARGETS=$(rustc -vV | sed -n 's|^host: \([^-]*-[^-]*-[^-]*\)-gnu$|\1|p'); TARGETS=$(rustup target list --installed | grep "$TARGETS"); : "${TARGET:=$(echo "$TARGETS" | grep -v musl | head -n1)}" "${TARGET:=$(echo "$TARGETS" | grep musl | head -n1)}"
135
: "${TARGET:=$(rustc -vV | sed -n 's/^host: //p')}"
136
#[ -z "$TARGET" ] && TARGET=$(rustc -vV | sed -n 's/host: //p')
137
unset RUSTC
138
: "${CC:=$(command -v clang || command -v gcc)}"
139
# warning of mimalloc-rust-sys@1.7.9-source
140
expr "$CC" : ".*gcc" >/dev/null && : "${CFLAGS_:=-std=c11 -Bmold -Wno-implicit-function-declaration -Wno-error=implicit-function-declaration}"
141
CC="$CC" CFLAGS="$CFLAGS $CFLAGS_" RUSTFLAGS="-Clink-arg=-Bmold" cargo build --release --target $TARGET -F use-snmalloc || \
142
CC="$CC" CFLAGS="$CFLAGS $CFLAGS_" RUSTFLAGS="-Clink-arg=-Bmold" cargo build --release --target $TARGET -F use-auto-allocator || \
143
CC="$CC" CFLAGS="$CFLAGS $CFLAGS_" RUSTFLAGS="-Clink-arg=-Bmold" cargo build --release --target $TARGET -F use-mimalloc || \
144
CC="$CC" CFLAGS="$CFLAGS $CFLAGS_" RUSTFLAGS="-Clink-arg=-Bmold" cargo build --release --target $TARGET
145
msg '2. Convert SudachiDict to Mozc System Dictionary format. It may take some time...'
146
#cat "${srcdir}"/mozc/src/data/dictionary_oss/dictionary*.txt > all-dict.txt
147
cat ${srcdir}/small_lex.csv ${srcdir}/core_lex.csv ${srcdir}/notcore_lex.csv > all.csv
148
cp ${srcdir}/mozc/src/data/dictionary_oss/id.def ./
149
./target/$TARGET/release/dict-to-mozc -D 1 -s -i ./id.def -f all.csv > all-dict.txt
150
msg '3. Convert MeCab-unidic-Neologd to Mozc System Dictionary format. It may take some time...'
151
./target/$TARGET/release/dict-to-mozc -D 1 -n -i ./id.def -f ${srcdir}/mecab-unidic-user-dict-seed.20200910.csv >> all-dict.txt
152
msg '4. Convert MeCab-ipadic-Neologd to Mozc System Dictionary format. It may take some time...'
153
./target/$TARGET/release/dict-to-mozc -D 1 -n -P 12 -N 10 -i ./id.def -f ${srcdir}/mecab-user-dict-seed.20200910.csv >> all-dict.txt
154
msg '5. Duplicate data will be removed.'
155
156
# 読み、表記による重複チェック。件数を抑制するために、品詞IDを無視し、読みと表記のみで重複チェック。
157
awk 'BEGIN{FS="\t";OFS="\t"}{if (!a[$1,$5]++) {print $0}}' all-dict.txt|sort > finish-dict-pre.txt
158
# 「ろっ」「ろっき」からはじまる単語が多いと、「ろっき」の入力ができないエラー抑止のため一括削除
159
sed -i "/^ろっき/d" finish-dict-pre.txt
160
# Mozcソースのデータとの重複は品詞IDもチェック
161
cat "${srcdir}"/mozc/src/data/dictionary_oss/dictionary*.txt finish-dict-pre.txt|sort>> finish-dict-pre-2.txt
162
# 読み、品詞ID、右品詞ID、表記による重複チェック
163
awk 'BEGIN{FS="\t";OFS="\t"}{if (!a[$1,$2,$3,$5]++) {print $0}}' finish-dict-pre-2.txt|sort > finish-dict.txt
164
msg '6. Finally, add the SudachiDict, MeCab-unidic-Neologd and MeCab-ipadic-Neologd dictionary to the Mozc source.'
165
mkdir -p tmp
166
cd tmp
167
ROWS=$(echo $(($(wc -l ../finish-dict.txt |cut -f1 -d" ")/10+1)))
168
split -d -l $ROWS --additional-suffix=.txt ../finish-dict.txt dictionary
169
cp -af ./dictionary*.txt "$srcdir/mozc/src/data/dictionary_oss/"
170
#cat finish-dict.txt >> "$srcdir/mozc/src/data/dictionary_oss/dictionary00.txt"
171
sync
172
}
173
174
build() {
175
cd "$srcdir/mozc/src" || exit
176
177
# Fix compatibility with google-glog 0.3.3 (symbol conflict)
178
CFLAGS="${CFLAGS} -fvisibility=hidden"
179
CXXFLAGS="${CXXFLAGS} -fvisibility=hidden"
180
181
cd ${srcdir}/mozc/src || exit
182
183
LDFLAGS="${LDFLAGS} -fuse-ld=mold"
184
185
# The bazel rules have changed, so the cache will be deleted.
186
#bazel clean --expunge
187
188
../scripts/build_fcitx5_bazel \
189
--config release_build \
190
--config stable_channel \
191
--registry="file://${srcdir}/bcr" \
192
$(echo "${CFLAGS}"|xargs -n1 echo "--copt"|grep -v _FORTIFY_SOURCE) \
193
$(echo "${CXXFLAGS}"|xargs -n1 echo "--cxxopt"|grep -v _FORTIFY_SOURCE) \
194
$(echo "${LDFLAGS}"|xargs -n1 echo "--linkopt") \
195
--copt="-Wno-uninitialized" \
196
--host_copt="-Wno-uninitialized" --verbose_failures \
197
package \
198
#--nostart_end_lib \
199
200
bazel shutdown
201
}
202
203
install_mozc-with-jp-dict-common() {
204
cd ${srcdir}/mozc/src || exit
205
export PREFIX="$pkgdir/usr"
206
export _bldtype
207
208
install -d "$pkgdir/usr/share/licenses/$pkgname/"
209
# Unicode-3.0
210
[ -e data/unicode/JIS0201.TXT ] && head -n 50 data/unicode/JIS0201.TXT > LICENSE.JIS0201
211
[ -e data/unicode/JIS0208.TXT ] && head -n 73 data/unicode/JIS0208.TXT > LICENSE.JIS0208
212
#[ -e data/unicode/jisx0213-2004-std.txt ] && head -n 22 data/unicode/jisx0213-2004-std.txt > LICENSE.jisx0213-2004-std
213
214
# BSD-3-Clause
215
sed -n 1,29p unix/fcitx5/fcitx_key_translator.h > Fcitx5
216
sed -i -e 's|^\/\/[ ]\?||g' Fcitx5
217
install -Dm644 Fcitx5 "${pkgdir}"/usr/share/licenses/${pkgname}/Fcitx5
218
# BSD-3-Clause
219
sed -n 67,94p data/installer/credits_en.html > Mozc
220
install -Dm644 Mozc "${pkgdir}"/usr/share/licenses/${pkgname}/Mozc
221
# BSD-3-Clause
222
sed -n 317,344p data/installer/credits_en.html > Breakpad
223
install -Dm644 Breakpad "${pkgdir}"/usr/share/licenses/${pkgname}/Breakpad
224
# NAIST-2003
225
sed -n 355,424p data/installer/credits_en.html > IPAdic
226
install -Dm644 IPAdic "${pkgdir}"/usr/share/licenses/${pkgname}/IPAdic
227
# BSD-2-Clause
228
sed -n 435,457p data/installer/credits_en.html > Japanese-Usage-Dictionary
229
install -Dm644 Japanese-Usage-Dictionary "${pkgdir}"/usr/share/licenses/${pkgname}/Japanese-Usage-Dictionary
230
# Public Domain Data
231
sed -n 468,470p data/installer/credits_en.html > Okinawa-Dictionary
232
install -Dm644 Okinawa-Dictionary "${pkgdir}"/usr/share/licenses/${pkgname}/Okinawa-Dictionary
233
# BSD-3-Clause
234
sed -n 481,513p data/installer/credits_en.html > Protocol-Buffers
235
install -Dm644 Protocol-Buffers "${pkgdir}"/usr/share/licenses/${pkgname}/Protocol-Buffers
236
# MIT
237
sed -n 698,704p data/installer/credits_en.html > Tamachi-Phonetic-Kanji-Alphabet
238
install -Dm644 Tamachi-Phonetic-Kanji-Alphabet "${pkgdir}"/usr/share/licenses/${pkgname}/Tamachi-Phonetic-Kanji-Alphabet
239
# MIT
240
sed -n 762,782p data/installer/credits_en.html > Windows-Implementation-Library
241
sed -i -e 's|^[ \t]*||g' Windows-Implementation-Library
242
install -Dm644 Windows-Implementation-Library "${pkgdir}"/usr/share/licenses/${pkgname}/Windows-Implementation-Library
243
244
install -d "$pkgdir/usr/share/licenses/$pkgname/data/dictionary_oss/"
245
install -D -m 644 "$srcdir/LICENSE-SudachiDict" "$pkgdir/usr/share/licenses/$pkgname/data/dictionary_oss/"
246
install -D -m 644 "$srcdir/LICENSE-MeCab-unidic-Neologd" "$pkgdir/usr/share/licenses/$pkgname/data/dictionary_oss/"
247
install -D -m 644 "$srcdir/LICENSE-MeCab-ipadic-Neologd" "$pkgdir/usr/share/licenses/$pkgname/data/dictionary_oss/"
248
249
}
250
251
package_fcitx5-mozc-with-jp-dict() {
252
pkgdesc="Fcitx5 Module for Mozc(the Open Source Edition of Google Japanese Input) with SudachiDict and MeCab UniDic Neologd and MeCab IpaDic Neologd"
253
254
depends=('fcitx5' 'fcitx5-qt' 'hicolor-icon-theme')
255
optdepends=('fcitx5-configtool')
256
provides=("fcitx5-mozc=${pkgver}")
257
conflicts=('fcitx-mozc' 'fcitx5-mozc' 'fcitx' 'fcitx-qt5' 'fcitx-qt6' 'ibus-mozc')
258
install=fcitx5-mozc.install
259
260
export PREFIX="$pkgdir/usr"
261
export _bldtype
262
cd ${srcdir}/mozc/src || exit
263
install_mozc-with-jp-dict-common
264
../scripts/install_server_bazel
265
../scripts/install_fcitx5_bazel
266
install -D -m 644 unix/fcitx5/fcitx5/profile "$pkgdir/usr/share/fcitx5-mozc/fcitx5/profile"
267
install -D -m 644 unix/fcitx5/fcitx5/conf/notifications.conf "$pkgdir/usr/share/fcitx5-mozc/fcitx5/conf/notifications.conf"
268
install -D -m 644 unix/fcitx5/fcitx5/conf/waylandim.conf "$pkgdir/usr/share/fcitx5-mozc/fcitx5/conf/waylandim.conf"
269
install -D -m 644 unix/fcitx5/fcitx5/conf/xim.conf "$pkgdir/usr/share/fcitx5-mozc/fcitx5/conf/xim.conf"
270
install -D -m 644 unix/fcitx5/fcitx5/conf/mozc.conf "$pkgdir/usr/share/fcitx5-mozc/fcitx5/conf/mozc.conf"
271
install -D -m 644 unix/fcitx5/fcitx5/conf/classicui.conf "$pkgdir/usr/share/fcitx5-mozc/fcitx5/conf/classicui.conf"
272
}
273
274
package_ibus-mozc-with-jp-dict() {
275
pkgdesc="Ibus engine module for Mozc(the Open Source Edition of Google Japanese Input) with SudachiDict and MeCab UniDic Neologd and MeCab IpaDic Neologd"
276
depends=('ibus>=1.4.1' "qt6-base" 'libibus')
277
provides=("ibus-mozc=${pkgver}")
278
conflicts=('fcitx' 'fcitx-configtool' 'ibus-mozc' 'fcitx-qt5' 'fcitx-qt6' 'fcitx-mozc' 'fcitx5' 'fcitx5-configtool' 'fcitx5-qt' 'fcitx5-mozc')
279
280
export _bldtype
281
cd "${srcdir}/mozc/src" || exit
282
install_mozc-with-jp-dict-common
283
../scripts/install_server_bazel
284
sed -i -e "s|0\.0\.0\.0|${pkgver}|g" bazel-bin/unix/ibus/mozc.xml
285
install -D -m 755 bazel-bin/unix/ibus/ibus_mozc "$pkgdir/usr/lib/ibus-mozc/ibus-engine-mozc"
286
install -D -m 644 bazel-bin/unix/ibus/mozc.xml "$pkgdir/usr/share/ibus/component/mozc.xml"
287
install -D -m 755 bazel-bin/renderer/qt/mozc_renderer "${pkgdir}/usr/lib/mozc/mozc_renderer"
288
289
cd bazel-bin/unix || exit
290
unzip -o icons.zip *.png *.svg -d tmp
291
cd tmp || exit
292
install -Dm644 mozc.png "${pkgdir}/usr/share/ibus-mozc/product_icon.png"
293
find . -type f -name "*.svg" | xargs -I{} install -Dm644 "{}" "${pkgdir}/usr/share/ibus-mozc/{}"
294
find . -type f -name "*.png" | xargs -I{} install -Dm644 "{}" "${pkgdir}/usr/share/ibus-mozc/{}"
295
}
296
297
package_emacs-mozc-with-jp-dict() {
298
pkgdesc="Emacs engine module for Mozc with SudachiDict and MeCab UniDic Neologd and MeCab IpaDic Neologd"
299
license=('BSD-3-Clause')
300
depends=("emacs" glibc gcc-libs)
301
provides=("emacs-mozc=${pkgver}")
302
conflicts=('emacs-mozc')
303
304
export _bldtype
305
cd "${srcdir}/mozc/src" || exit
306
install_mozc-with-jp-dict-common
307
install -Dm755 bazel-bin/unix/emacs/mozc_emacs_helper "$pkgdir/usr/bin/mozc_emacs_helper"
308
install -Dm644 unix/emacs/mozc.el "$pkgdir/usr/share/emacs/site-lisp/emacs-mozc/mozc.el"
309
}
310
311
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 00:24:32 | LOW | 2 |
| 2026-07-26 00:07:32 | LOW | 2 |
| 2026-07-25 00:13:44 | LOW | 2 |
| 2026-07-24 00:02:28 | LOW | 2 |
| 2026-07-23 00:14:47 | LOW | 2 |
| 2026-07-22 00:29:32 | LOW | 2 |
| 2026-07-21 00:24:15 | LOW | 2 |
| 2026-07-20 00:19:49 | LOW | 2 |
| 2026-07-19 00:17:08 | LOW | 2 |
| 2026-07-18 00:14:48 | LOW | 2 |
| 2026-07-17 00:06:16 | LOW | 2 |
| 2026-07-16 00:05:41 | LOW | 2 |
| 2026-07-15 00:09:25 | LOW | 2 |