Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

127.11. opencc-1.4.2

Conversion between Traditional and Simplified Chinese

1.4.2-1 · Apache-2.0 · 0.8 SBU · 3.6 MiB, 75 files · 41_system, 681 of 1047 · ports/core/i18n/opencc

Homepage: https://github.com/BYVoid/OpenCC

Depends on: cmake, ninja, python3.

Required by (2): fcitx5-chinese-addons, goldendict-ng.

Sources: opencc-1.4.2.tar.gz (11.3 MiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install opencc'

build.sh:

cmake -S . -B build -G Ninja \
	-D CMAKE_INSTALL_PREFIX=/usr \
	-D CMAKE_INSTALL_LIBDIR=lib \
	-D CMAKE_BUILD_TYPE=Release \
	-D BUILD_SHARED_LIBS=ON \
	-D BUILD_DOCUMENTATION=OFF \
	-D BUILD_PYTHON=OFF \
	-D ENABLE_GTEST=OFF \
	-D ENABLE_BENCHMARK=OFF \
	-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build

Programs: opencc, opencc_dict, opencc_phrase_extract.

Libraries: libmarisa.a, libopencc.so.

Directories: /usr/include/opencc, /usr/lib/cmake/opencc, /usr/share/licenses/opencc, /usr/share/opencc.