8b627c40af
KF6 frameworks: 44 frameworks bumped from 6.10.0/6.26.0 to 6.27.0 (latest stable). All switched to download.kde.org canonical release URLs with BLAKE3 hashes. KDE Plasma packages bumped to 6.7.2 (latest stable): - breeze 6.3.4→6.7.2 - plasma-workspace 6.3.4→6.7.2 - kf6-kwayland 6.3.4→6.7.2 - kf6-plasma-activities 6.6.5→6.7.2 Other graphics libs bumped to latest stable: - libxkbcommon 1.9.2→1.11.0 - seatd-redox 0.9.3→0.10.1 (URL switched to gitlab.freedesktop.org) - plasma-wayland-protocols 1.16.0→1.21.0 All BLAKE3 hashes computed from actual upstream tarballs.
82 lines
2.6 KiB
TOML
82 lines
2.6 KiB
TOML
#TODO: KDE KConfig — configuration framework, no GUI deps. Depends on qtbase, qtdeclarative, kf6-extra-cmake-modules.
|
|
[source]
|
|
tar = "https://download.kde.org/stable/frameworks/6.27/kconfig-6.27.0.tar.xz"
|
|
blake3 = "53a46ec30bb231d04aaab0f8ece06dc596c1db9d11e7b24117185dcedc1dd4ea"
|
|
|
|
[build]
|
|
template = "custom"
|
|
dependencies = [
|
|
"qtbase",
|
|
"qtdeclarative",
|
|
"kf6-extra-cmake-modules",
|
|
]
|
|
script = """
|
|
DYNAMIC_INIT
|
|
|
|
HOST_BUILD="${COOKBOOK_ROOT}/build/qt-host-build"
|
|
source "${COOKBOOK_ROOT}/local/scripts/lib/qt-sysroot.sh"
|
|
|
|
redbear_qt_link_sysroot_dirs "${COOKBOOK_SYSROOT}" plugins mkspecs metatypes modules
|
|
|
|
sed -i "s/^ecm_install_po_files_as_qm/#ecm_install_po_files_as_qm/" \
|
|
"${COOKBOOK_SOURCE}/CMakeLists.txt" 2>/dev/null || true
|
|
|
|
rm -f CMakeCache.txt
|
|
rm -rf CMakeFiles
|
|
|
|
cmake "${COOKBOOK_SOURCE}" \
|
|
-DCMAKE_TOOLCHAIN_FILE="${COOKBOOK_ROOT}/local/recipes/qt/redox-toolchain.cmake" \
|
|
-DQT_HOST_PATH="${HOST_BUILD}" \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}" \
|
|
-DBUILD_TESTING=OFF \
|
|
-DBUILD_QCH=OFF \
|
|
-DKCONFIG_USE_QML=OFF \
|
|
-DUSE_DBUS=OFF \
|
|
-Wno-dev
|
|
|
|
cmake --build . -j${COOKBOOK_MAKE_JOBS}
|
|
cmake --install . --prefix "${COOKBOOK_STAGE}/usr"
|
|
|
|
CONFIG_CMAKE="${COOKBOOK_STAGE}/usr/lib/cmake/KF6Config/KF6ConfigConfig.cmake"
|
|
if [ -f "${CONFIG_CMAKE}" ]; then
|
|
python3 - <<'PY' "${CONFIG_CMAKE}"
|
|
from pathlib import Path
|
|
import sys
|
|
|
|
path = Path(sys.argv[1])
|
|
text = path.read_text()
|
|
old = '''if(CMAKE_CROSSCOMPILING AND KF6_HOST_TOOLING)
|
|
find_file(KCONFIGCOMPILER_PATH KF6Config/KF6ConfigCompilerTargets.cmake
|
|
PATHS ${KF6_HOST_TOOLING} ${CMAKE_CURRENT_LIST_DIR}
|
|
NO_DEFAULT_PATH
|
|
NO_CMAKE_FIND_ROOT_PATH)
|
|
include("${KCONFIGCOMPILER_PATH}")
|
|
else()
|
|
include("${CMAKE_CURRENT_LIST_DIR}/KF6ConfigCompilerTargets.cmake")
|
|
endif()'''
|
|
new = '''if(CMAKE_CROSSCOMPILING AND KF6_HOST_TOOLING)
|
|
find_file(KCONFIGCOMPILER_PATH KF6Config/KF6ConfigCompilerTargets.cmake
|
|
PATHS ${KF6_HOST_TOOLING} ${CMAKE_CURRENT_LIST_DIR}
|
|
NO_DEFAULT_PATH
|
|
NO_CMAKE_FIND_ROOT_PATH)
|
|
if(KCONFIGCOMPILER_PATH)
|
|
include("${KCONFIGCOMPILER_PATH}")
|
|
elseif(EXISTS "${CMAKE_CURRENT_LIST_DIR}/KF6ConfigCompilerTargets.cmake")
|
|
include("${CMAKE_CURRENT_LIST_DIR}/KF6ConfigCompilerTargets.cmake")
|
|
endif()
|
|
else()
|
|
include("${CMAKE_CURRENT_LIST_DIR}/KF6ConfigCompilerTargets.cmake")
|
|
endif()'''
|
|
if old in text:
|
|
path.write_text(text.replace(old, new))
|
|
PY
|
|
fi
|
|
|
|
for lib in "${COOKBOOK_STAGE}/usr/lib/"libKF6*.so.*; do
|
|
[ -f "${lib}" ] || continue
|
|
patchelf --remove-rpath "${lib}" 2>/dev/null || true
|
|
done
|
|
"""
|