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

127.7. libdatrie-0.2.14

Double-array trie — the dictionary structure libthai looks words up in

0.2.14-1 · LGPL-2.1-or-later · 0.1 SBU · 117.2 KiB, 13 files · 41_system, 677 of 1047 · ports/core/i18n/libdatrie

Homepage: https://linux.thai.net/projects/datrie

Why it is in KDOS. The comment above the 3 ports from libunibreak to libthai in script/phases/41_system/packages.d/i18n.txt:

Where a line of text may break: libunibreak for libass's subtitles (UAX #14), and libthai over libdatrie's trie for pango, because Thai has no spaces between words.

Depends on: pkgconf.

Required by (1): libthai.

Sources: libdatrie-0.2.14.tar.xz (318.1 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 libdatrie'

build.sh:

./configure --prefix=/usr --libdir=/usr/lib --disable-static \
	--disable-doxygen-doc
make
make DESTDIR=$PKG install

Programs: trietool, trietool-0.2.

Libraries: libdatrie.so.

Directories: /usr/include/datrie, /usr/share/licenses/libdatrie.