270.6. ksanecore-26.08.2
Qt 6 library that drives SANE scanners, without a user interface
26.08.2-1 · LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL · 2.8 SBU · 413.9 KiB, 21 files · 43_toolkits, 257 of 344 · ports/core/printing/ksanecore
Homepage: https://invent.kde.org/libraries/ksanecore
ksanecore drives SANE scanners for Qt 6 programs, with no user interface: it lists devices, reads and sets their options and runs scans, through sane-backends. libksane builds its scanner widget on it, and Skanpage uses it directly.
Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, ki18n, sane-backends.
Required by (3): libksane, skanlite, skanpage.
Sources: ksanecore-26.08.2.tar.xz (54.1 KiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/43_toolkits/phase.env && kpkg install ksanecore'
build.sh:
cmake -S . -B build -G Ninja \
-D CMAKE_INSTALL_PREFIX=/usr \
-D KDE_INSTALL_LIBDIR=lib \
-D CMAKE_BUILD_TYPE=Release \
-D BUILD_TESTING=OFF \
-D KDE_INSTALL_USE_QT_SYS_PATHS=ON \
-D KF_SKIP_PO_PROCESSING=ON \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
-D KF_SKIP_PO_PROCESSING=ON— Builds none of the interface translations inpo/; the image is English only (see Size and language policy).
Libraries: libKSaneCore6.so.
Directories: /usr/include/KSaneCore6, /usr/lib/cmake/KSaneCore6, /usr/share/licenses/ksanecore.