The Uchardet package contains an encoding detector library which takes a sequence of bytes in an unknown character encoding and attempts to determine the encoding of the text.
This package is known to build and work properly using an LFS 12.4 platform.
Download (HTTP): https://www.freedesktop.org/software/uchardet/releases/uchardet-0.0.8.tar.xz
Download SHA256 Sum: e97a60cfc00a1c147a674b097bb1422abd9fa78a2d9ce3f3fdcc2e78a34ac5f0
Download MD5 sum: 9e267be7aee81417e5875086dd9d44fd
Download size: 1,323.7 KB
Estimated disk space required: 2,694.6 KB
Estimated build time: less than 0.1 SBU
Prepare Uchardet by running the following commands:
cmake -B build -W no-dev \
-D CMAKE_INSTALL_PREFIX=/usr \
-D BUILD_STATIC=OFF \
-D CMAKE_POLICY_VERSION_MINIMUM=3.5To Build the package, issue:
cmake --build build
To test the results, issue:
cd build make test cd ../
Now Install the package, as the root user:
cmake --install build
-D BUILD_STATIC=OFF: This switch disables building
the static version of the library.
-D CMAKE_POLICY_VERSION_MINIMUM=3.5: This switch
allows building this package with cmake-4.0 or newer.