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

150.4. sdcv-0.5.5

Look a word up in a StarDict dictionary, offline

0.5.5-1 · GPL-2.0-or-later · 0.5 SBU · 218.9 KiB, 3 files · 41_system, 458 of 1047 · ports/core/education/sdcv

Homepage: https://dushistov.github.io/sdcv/

Why it is in KDOS. The comment above it in script/phases/41_system/packages.d/education.txt:

StarDict is the one dictionary format with a large body of freely redistributable data already converted into it. Shipping a dictionary would be picking a language for everybody.

Depends on: cmake, ninja, pkgconf, glib, zlib, readline, gettext.

Required by: no port names it.

Sources: sdcv-0.5.5.tar.gz (65.4 KiB). Every step kpkg takes applies to this port.

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

build.sh:

export CXXFLAGS="$CXXFLAGS -fpermissive"

mkdir -p build && cd build
cmake .. -G Ninja \
	-DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
	-DCMAKE_BUILD_TYPE=Release \
	-DCMAKE_INSTALL_PREFIX=/usr \
	-DENABLE_NLS=ON \
	-DWITH_READLINE=ON
ninja
ninja lang
DESTDIR=$PKG ninja install
install -dm755 $PKG/usr/share/stardict/dic

Programs: sdcv.

Directories: /usr/share/licenses/sdcv, /usr/share/stardict.