127.4. uchardet-0.0.8
Guesses the character encoding of a text file — how mpv reads a subtitle that is not UTF-8
0.0.8-1 · MPL-1.1 OR GPL-2.0-or-later OR LGPL-2.1-or-later · 0.2 SBU · 324.3 KiB, 12 files · 41_system, 407 of 1047 · ports/core/i18n/uchardet
Homepage: https://www.freedesktop.org/wiki/Software/uchardet/
Why it is in KDOS. The comment above it in script/phases/41_system/packages.d/i18n.txt:
A subtitle in a legacy encoding, detected rather than drawn as mojibake.
Depends on: cmake.
Required by (4): calibre, groff, mpv, totem-pl-parser.
Sources: uchardet-0.0.8.tar.xz (217.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 uchardet'
build.sh:
cmake -B build -DCMAKE_POLICY_VERSION_MINIMUM=3.5 -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=ON \
-DBUILD_STATIC=OFF \
-DBUILD_BINARY=ON
cmake --build build
DESTDIR=$PKG cmake --install build
Programs: uchardet.
Libraries: libuchardet.so.
Directories: /usr/include/uchardet, /usr/lib/cmake/uchardet, /usr/share/licenses/uchardet.