From 0eff36e63e50e4beba811018f8f26c6e279858a4 Mon Sep 17 00:00:00 2001
From: Ribbon <ribbon_45@proton.me>
Date: Mon, 1 Jul 2024 04:19:52 +0000
Subject: [PATCH] Add the CMake script on many recipes

---
 .../libs/kde5/kf5-activities-stats/recipe.toml  | 17 ++++++++++++++++-
 .../wip/libs/kde5/kf5-activities/recipe.toml    | 17 ++++++++++++++++-
 recipes/wip/libs/kde5/kf5-apidox/recipe.toml    | 17 ++++++++++++++++-
 recipes/wip/libs/kde5/kf5-archive/recipe.toml   | 17 ++++++++++++++++-
 recipes/wip/libs/kde5/kf5-attica/recipe.toml    | 17 ++++++++++++++++-
 recipes/wip/libs/kde5/kf5-auth/recipe.toml      | 17 ++++++++++++++++-
 recipes/wip/libs/kde5/kf5-baloo/recipe.toml     | 17 ++++++++++++++++-
 recipes/wip/libs/kde5/kf5-bookmarks/recipe.toml | 17 ++++++++++++++++-
 .../wip/libs/kde5/kf5-calendarcore/recipe.toml  | 17 ++++++++++++++++-
 .../wip/libs/kde5/kf5-cmake-modules/recipe.toml | 17 ++++++++++++++++-
 recipes/wip/libs/kde5/kf5-cmutils/recipe.toml   | 17 ++++++++++++++++-
 recipes/wip/libs/kde5/kf5-codecs/recipe.toml    | 17 ++++++++++++++++-
 .../wip/libs/kde5/kf5-completion/recipe.toml    | 17 ++++++++++++++++-
 recipes/wip/libs/kde5/kf5-config/recipe.toml    | 17 ++++++++++++++++-
 .../wip/libs/kde5/kf5-configwidgets/recipe.toml | 17 ++++++++++++++++-
 recipes/wip/libs/kde5/kf5-contacts/recipe.toml  | 17 ++++++++++++++++-
 .../wip/libs/kde5/kf5-coreaddons/recipe.toml    | 17 ++++++++++++++++-
 recipes/wip/libs/kde5/kf5-crash/recipe.toml     | 17 ++++++++++++++++-
 recipes/wip/libs/kde5/kf5-dav/recipe.toml       | 17 ++++++++++++++++-
 .../wip/libs/kde5/kf5-dbusaddons/recipe.toml    | 17 ++++++++++++++++-
 .../wip/libs/kde5/kf5-declarative/recipe.toml   | 17 ++++++++++++++++-
 recipes/wip/libs/kde5/kf5-dnssd/recipe.toml     | 17 ++++++++++++++++-
 recipes/wip/libs/kde5/kf5-doctools/recipe.toml  | 17 ++++++++++++++++-
 recipes/wip/libs/kde5/kf5-emoticons/recipe.toml | 17 ++++++++++++++++-
 .../wip/libs/kde5/kf5-filemetadata/recipe.toml  | 17 ++++++++++++++++-
 .../kde5/kf5-frameworkintegration/recipe.toml   | 17 ++++++++++++++++-
 .../wip/libs/kde5/kf5-globalaccel/recipe.toml   | 17 ++++++++++++++++-
 recipes/wip/libs/kde5/kf5-guiaddons/recipe.toml | 17 ++++++++++++++++-
 recipes/wip/libs/kde5/kf5-holidays/recipe.toml  | 17 ++++++++++++++++-
 recipes/wip/libs/kde5/kf5-i18n/recipe.toml      | 17 ++++++++++++++++-
 .../wip/libs/kde5/kf5-iconthemes/recipe.toml    | 17 ++++++++++++++++-
 recipes/wip/libs/kde5/kf5-idletime/recipe.toml  | 17 ++++++++++++++++-
 recipes/wip/libs/kde5/kf5-init/recipe.toml      | 17 ++++++++++++++++-
 recipes/wip/libs/kde5/kf5-io/recipe.toml        | 17 ++++++++++++++++-
 .../wip/libs/kde5/kf5-itemmodels/recipe.toml    | 17 ++++++++++++++++-
 recipes/wip/libs/kde5/kf5-itemviews/recipe.toml | 17 ++++++++++++++++-
 .../wip/libs/kde5/kf5-jobwidgets/recipe.toml    | 17 ++++++++++++++++-
 recipes/wip/libs/kde5/kf5-kded/recipe.toml      | 17 ++++++++++++++++-
 recipes/wip/libs/kde5/kf5-kdesu/recipe.toml     | 17 ++++++++++++++++-
 recipes/wip/libs/kde5/kf5-kirigami/recipe.toml  | 17 ++++++++++++++++-
 .../wip/libs/kde5/kf5-modem-manager/recipe.toml | 17 ++++++++++++++++-
 .../libs/kde5/kf5-networkmanager/recipe.toml    | 17 ++++++++++++++++-
 recipes/wip/libs/kde5/kf5-newstuff/recipe.toml  | 17 ++++++++++++++++-
 .../wip/libs/kde5/kf5-notifications/recipe.toml | 17 ++++++++++++++++-
 .../wip/libs/kde5/kf5-notifyconfig/recipe.toml  | 17 ++++++++++++++++-
 recipes/wip/libs/kde5/kf5-package/recipe.toml   | 17 ++++++++++++++++-
 recipes/wip/libs/kde5/kf5-people/recipe.toml    | 17 ++++++++++++++++-
 .../libs/kde5/kf5-plasma-framework/recipe.toml  | 17 ++++++++++++++++-
 recipes/wip/libs/kde5/kf5-plotting/recipe.toml  | 17 ++++++++++++++++-
 recipes/wip/libs/kde5/kf5-prison/recipe.toml    | 17 ++++++++++++++++-
 recipes/wip/libs/kde5/kf5-pty/recipe.toml       | 17 ++++++++++++++++-
 recipes/wip/libs/kde5/kf5-purpose/recipe.toml   | 17 ++++++++++++++++-
 .../kde5/kf5-qqc2-desktop-style/recipe.toml     | 17 ++++++++++++++++-
 .../wip/libs/kde5/kf5-quickcharts/recipe.toml   | 17 ++++++++++++++++-
 recipes/wip/libs/kde5/kf5-runner/recipe.toml    | 17 ++++++++++++++++-
 recipes/wip/libs/kde5/kf5-service/recipe.toml   | 17 ++++++++++++++++-
 recipes/wip/libs/kde5/kf5-solid/recipe.toml     | 17 ++++++++++++++++-
 recipes/wip/libs/kde5/kf5-sonnet/recipe.toml    | 17 ++++++++++++++++-
 .../wip/libs/kde5/kf5-syndication/recipe.toml   | 17 ++++++++++++++++-
 .../kde5/kf5-syntax-highlighting/recipe.toml    | 17 ++++++++++++++++-
 .../wip/libs/kde5/kf5-texteditor/recipe.toml    | 17 ++++++++++++++++-
 .../wip/libs/kde5/kf5-textwidgets/recipe.toml   | 17 ++++++++++++++++-
 .../wip/libs/kde5/kf5-threadweaver/recipe.toml  | 17 ++++++++++++++++-
 .../libs/kde5/kf5-unitconversion/recipe.toml    | 17 ++++++++++++++++-
 recipes/wip/libs/kde5/kf5-wayland/recipe.toml   | 17 ++++++++++++++++-
 .../wip/libs/kde5/kf5-widgetaddons/recipe.toml  | 17 ++++++++++++++++-
 .../wip/libs/kde5/kf5-windowsystem/recipe.toml  | 17 ++++++++++++++++-
 recipes/wip/libs/kde5/kf5-xmlgui/recipe.toml    | 17 ++++++++++++++++-
 68 files changed, 1088 insertions(+), 68 deletions(-)

diff --git a/recipes/wip/libs/kde5/kf5-activities-stats/recipe.toml b/recipes/wip/libs/kde5/kf5-activities-stats/recipe.toml
index 81c7aa7cf..4d684d0de 100644
--- a/recipes/wip/libs/kde5/kf5-activities-stats/recipe.toml
+++ b/recipes/wip/libs/kde5/kf5-activities-stats/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, lacking build instructions
+#TODO maybe incomplete script, lacking build instructions
 [source]
 tar = "https://download.kde.org/stable/frameworks/5.112/kactivities-stats-5.112.0.tar.xz"
 [build]
 template = "custom"
+script = """
+COOKBOOK_CONFIGURE="cmake"
+COOKBOOK_CONFIGURE_FLAGS=(
+    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_CROSSCOMPILING=True
+    -DCMAKE_EXE_LINKER_FLAGS="-static"
+    -DCMAKE_INSTALL_PREFIX="/"
+    -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
+    -DCMAKE_SYSTEM_NAME=Generic
+    -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
+    -DCMAKE_VERBOSE_MAKEFILE=On
+"${COOKBOOK_SOURCE}"
+)
+cookbook_configure
+"""
diff --git a/recipes/wip/libs/kde5/kf5-activities/recipe.toml b/recipes/wip/libs/kde5/kf5-activities/recipe.toml
index 515c7ac7b..0f9b9e6d3 100644
--- a/recipes/wip/libs/kde5/kf5-activities/recipe.toml
+++ b/recipes/wip/libs/kde5/kf5-activities/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, lacking build instructions
+#TODO maybe incomplete script, lacking build instructions
 [source]
 tar = "https://download.kde.org/stable/frameworks/5.112/kactivities-5.112.0.tar.xz"
 [build]
 template = "custom"
+script = """
+COOKBOOK_CONFIGURE="cmake"
+COOKBOOK_CONFIGURE_FLAGS=(
+    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_CROSSCOMPILING=True
+    -DCMAKE_EXE_LINKER_FLAGS="-static"
+    -DCMAKE_INSTALL_PREFIX="/"
+    -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
+    -DCMAKE_SYSTEM_NAME=Generic
+    -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
+    -DCMAKE_VERBOSE_MAKEFILE=On
+"${COOKBOOK_SOURCE}"
+)
+cookbook_configure
+"""
diff --git a/recipes/wip/libs/kde5/kf5-apidox/recipe.toml b/recipes/wip/libs/kde5/kf5-apidox/recipe.toml
index b90418a7f..2b4073c79 100644
--- a/recipes/wip/libs/kde5/kf5-apidox/recipe.toml
+++ b/recipes/wip/libs/kde5/kf5-apidox/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, lacking build instructions
+#TODO maybe incomplete script, lacking build instructions
 [source]
 tar = "https://download.kde.org/stable/frameworks/5.112/kapidox-5.112.0.tar.xz"
 [build]
 template = "custom"
+script = """
+COOKBOOK_CONFIGURE="cmake"
+COOKBOOK_CONFIGURE_FLAGS=(
+    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_CROSSCOMPILING=True
+    -DCMAKE_EXE_LINKER_FLAGS="-static"
+    -DCMAKE_INSTALL_PREFIX="/"
+    -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
+    -DCMAKE_SYSTEM_NAME=Generic
+    -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
+    -DCMAKE_VERBOSE_MAKEFILE=On
+"${COOKBOOK_SOURCE}"
+)
+cookbook_configure
+"""
diff --git a/recipes/wip/libs/kde5/kf5-archive/recipe.toml b/recipes/wip/libs/kde5/kf5-archive/recipe.toml
index 13e61b26e..5578c6b44 100644
--- a/recipes/wip/libs/kde5/kf5-archive/recipe.toml
+++ b/recipes/wip/libs/kde5/kf5-archive/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, see https://invent.kde.org/frameworks/karchive/-/blob/master/INSTALL?ref_type=heads
+#TODO maybe incomplete script, see https://invent.kde.org/frameworks/karchive/-/blob/master/INSTALL?ref_type=heads
 [source]
 tar = "https://download.kde.org/stable/frameworks/5.112/karchive-5.112.0.tar.xz"
 [build]
 template = "custom"
+script = """
+COOKBOOK_CONFIGURE="cmake"
+COOKBOOK_CONFIGURE_FLAGS=(
+    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_CROSSCOMPILING=True
+    -DCMAKE_EXE_LINKER_FLAGS="-static"
+    -DCMAKE_INSTALL_PREFIX="/"
+    -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
+    -DCMAKE_SYSTEM_NAME=Generic
+    -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
+    -DCMAKE_VERBOSE_MAKEFILE=On
+"${COOKBOOK_SOURCE}"
+)
+cookbook_configure
+"""
diff --git a/recipes/wip/libs/kde5/kf5-attica/recipe.toml b/recipes/wip/libs/kde5/kf5-attica/recipe.toml
index b7098459f..27d31f4b3 100644
--- a/recipes/wip/libs/kde5/kf5-attica/recipe.toml
+++ b/recipes/wip/libs/kde5/kf5-attica/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, lacking build instructions
+#TODO maybe incomplete script, lacking build instructions
 [source]
 tar = "https://download.kde.org/stable/frameworks/5.112/attica-5.112.0.tar.xz"
 [build]
 template = "custom"
+script = """
+COOKBOOK_CONFIGURE="cmake"
+COOKBOOK_CONFIGURE_FLAGS=(
+    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_CROSSCOMPILING=True
+    -DCMAKE_EXE_LINKER_FLAGS="-static"
+    -DCMAKE_INSTALL_PREFIX="/"
+    -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
+    -DCMAKE_SYSTEM_NAME=Generic
+    -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
+    -DCMAKE_VERBOSE_MAKEFILE=On
+"${COOKBOOK_SOURCE}"
+)
+cookbook_configure
+"""
diff --git a/recipes/wip/libs/kde5/kf5-auth/recipe.toml b/recipes/wip/libs/kde5/kf5-auth/recipe.toml
index 3e9b9311f..2f4275f3b 100644
--- a/recipes/wip/libs/kde5/kf5-auth/recipe.toml
+++ b/recipes/wip/libs/kde5/kf5-auth/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, lacking build instructions
+#TODO maybe incomplete script, lacking build instructions
 [source]
 tar = "https://download.kde.org/stable/frameworks/5.112/kauth-5.112.0.tar.xz"
 [build]
 template = "custom"
+script = """
+COOKBOOK_CONFIGURE="cmake"
+COOKBOOK_CONFIGURE_FLAGS=(
+    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_CROSSCOMPILING=True
+    -DCMAKE_EXE_LINKER_FLAGS="-static"
+    -DCMAKE_INSTALL_PREFIX="/"
+    -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
+    -DCMAKE_SYSTEM_NAME=Generic
+    -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
+    -DCMAKE_VERBOSE_MAKEFILE=On
+"${COOKBOOK_SOURCE}"
+)
+cookbook_configure
+"""
diff --git a/recipes/wip/libs/kde5/kf5-baloo/recipe.toml b/recipes/wip/libs/kde5/kf5-baloo/recipe.toml
index b8d3c0657..5b395c8c7 100644
--- a/recipes/wip/libs/kde5/kf5-baloo/recipe.toml
+++ b/recipes/wip/libs/kde5/kf5-baloo/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, lacking build instructions
+#TODO maybe incomplete script, lacking build instructions
 [source]
 tar = "https://download.kde.org/stable/frameworks/5.112/baloo-5.112.0.tar.xz"
 [build]
 template = "custom"
+script = """
+COOKBOOK_CONFIGURE="cmake"
+COOKBOOK_CONFIGURE_FLAGS=(
+    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_CROSSCOMPILING=True
+    -DCMAKE_EXE_LINKER_FLAGS="-static"
+    -DCMAKE_INSTALL_PREFIX="/"
+    -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
+    -DCMAKE_SYSTEM_NAME=Generic
+    -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
+    -DCMAKE_VERBOSE_MAKEFILE=On
+"${COOKBOOK_SOURCE}"
+)
+cookbook_configure
+"""
diff --git a/recipes/wip/libs/kde5/kf5-bookmarks/recipe.toml b/recipes/wip/libs/kde5/kf5-bookmarks/recipe.toml
index 765cd5dce..5c2754ee5 100644
--- a/recipes/wip/libs/kde5/kf5-bookmarks/recipe.toml
+++ b/recipes/wip/libs/kde5/kf5-bookmarks/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, lacking build instructions
+#TODO maybe incomplete script, lacking build instructions
 [source]
 tar = "https://download.kde.org/stable/frameworks/5.112/kbookmarks-5.112.0.tar.xz"
 [build]
 template = "custom"
+script = """
+COOKBOOK_CONFIGURE="cmake"
+COOKBOOK_CONFIGURE_FLAGS=(
+    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_CROSSCOMPILING=True
+    -DCMAKE_EXE_LINKER_FLAGS="-static"
+    -DCMAKE_INSTALL_PREFIX="/"
+    -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
+    -DCMAKE_SYSTEM_NAME=Generic
+    -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
+    -DCMAKE_VERBOSE_MAKEFILE=On
+"${COOKBOOK_SOURCE}"
+)
+cookbook_configure
+"""
diff --git a/recipes/wip/libs/kde5/kf5-calendarcore/recipe.toml b/recipes/wip/libs/kde5/kf5-calendarcore/recipe.toml
index 9088f6598..7d75fda9b 100644
--- a/recipes/wip/libs/kde5/kf5-calendarcore/recipe.toml
+++ b/recipes/wip/libs/kde5/kf5-calendarcore/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, lacking build instructions
+#TODO maybe incomplete script, lacking build instructions
 [source]
 tar = "https://download.kde.org/stable/frameworks/5.112/kcalendarcore-5.112.0.tar.xz"
 [build]
 template = "custom"
+script = """
+COOKBOOK_CONFIGURE="cmake"
+COOKBOOK_CONFIGURE_FLAGS=(
+    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_CROSSCOMPILING=True
+    -DCMAKE_EXE_LINKER_FLAGS="-static"
+    -DCMAKE_INSTALL_PREFIX="/"
+    -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
+    -DCMAKE_SYSTEM_NAME=Generic
+    -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
+    -DCMAKE_VERBOSE_MAKEFILE=On
+"${COOKBOOK_SOURCE}"
+)
+cookbook_configure
+"""
diff --git a/recipes/wip/libs/kde5/kf5-cmake-modules/recipe.toml b/recipes/wip/libs/kde5/kf5-cmake-modules/recipe.toml
index 1a8392252..9cf7db39d 100644
--- a/recipes/wip/libs/kde5/kf5-cmake-modules/recipe.toml
+++ b/recipes/wip/libs/kde5/kf5-cmake-modules/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, lacking build instructions
+#TODO maybe incomplete script, lacking build instructions
 [source]
 tar = "https://download.kde.org/stable/frameworks/5.112/extra-cmake-modules-5.112.0.tar.xz"
 [build]
 template = "custom"
+script = """
+COOKBOOK_CONFIGURE="cmake"
+COOKBOOK_CONFIGURE_FLAGS=(
+    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_CROSSCOMPILING=True
+    -DCMAKE_EXE_LINKER_FLAGS="-static"
+    -DCMAKE_INSTALL_PREFIX="/"
+    -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
+    -DCMAKE_SYSTEM_NAME=Generic
+    -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
+    -DCMAKE_VERBOSE_MAKEFILE=On
+"${COOKBOOK_SOURCE}"
+)
+cookbook_configure
+"""
diff --git a/recipes/wip/libs/kde5/kf5-cmutils/recipe.toml b/recipes/wip/libs/kde5/kf5-cmutils/recipe.toml
index ec90f29e7..f1b9a0ae4 100644
--- a/recipes/wip/libs/kde5/kf5-cmutils/recipe.toml
+++ b/recipes/wip/libs/kde5/kf5-cmutils/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, lacking build instructions
+#TODO maybe incomplete script, lacking build instructions
 [source]
 tar = "https://download.kde.org/stable/frameworks/5.112/kcmutils-5.112.0.tar.xz"
 [build]
 template = "custom"
+script = """
+COOKBOOK_CONFIGURE="cmake"
+COOKBOOK_CONFIGURE_FLAGS=(
+    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_CROSSCOMPILING=True
+    -DCMAKE_EXE_LINKER_FLAGS="-static"
+    -DCMAKE_INSTALL_PREFIX="/"
+    -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
+    -DCMAKE_SYSTEM_NAME=Generic
+    -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
+    -DCMAKE_VERBOSE_MAKEFILE=On
+"${COOKBOOK_SOURCE}"
+)
+cookbook_configure
+"""
diff --git a/recipes/wip/libs/kde5/kf5-codecs/recipe.toml b/recipes/wip/libs/kde5/kf5-codecs/recipe.toml
index f0b560933..333788a7e 100644
--- a/recipes/wip/libs/kde5/kf5-codecs/recipe.toml
+++ b/recipes/wip/libs/kde5/kf5-codecs/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, lacking build instructions
+#TODO maybe incomplete script, lacking build instructions
 [source]
 tar = "https://download.kde.org/stable/frameworks/5.112/kcodecs-5.112.0.tar.xz"
 [build]
 template = "custom"
+script = """
+COOKBOOK_CONFIGURE="cmake"
+COOKBOOK_CONFIGURE_FLAGS=(
+    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_CROSSCOMPILING=True
+    -DCMAKE_EXE_LINKER_FLAGS="-static"
+    -DCMAKE_INSTALL_PREFIX="/"
+    -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
+    -DCMAKE_SYSTEM_NAME=Generic
+    -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
+    -DCMAKE_VERBOSE_MAKEFILE=On
+"${COOKBOOK_SOURCE}"
+)
+cookbook_configure
+"""
diff --git a/recipes/wip/libs/kde5/kf5-completion/recipe.toml b/recipes/wip/libs/kde5/kf5-completion/recipe.toml
index b35ef7266..fec436200 100644
--- a/recipes/wip/libs/kde5/kf5-completion/recipe.toml
+++ b/recipes/wip/libs/kde5/kf5-completion/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, lacking build instructions
+#TODO maybe incomplete script, lacking build instructions
 [source]
 tar = "https://download.kde.org/stable/frameworks/5.112/kcompletion-5.112.0.tar.xz"
 [build]
 template = "custom"
+script = """
+COOKBOOK_CONFIGURE="cmake"
+COOKBOOK_CONFIGURE_FLAGS=(
+    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_CROSSCOMPILING=True
+    -DCMAKE_EXE_LINKER_FLAGS="-static"
+    -DCMAKE_INSTALL_PREFIX="/"
+    -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
+    -DCMAKE_SYSTEM_NAME=Generic
+    -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
+    -DCMAKE_VERBOSE_MAKEFILE=On
+"${COOKBOOK_SOURCE}"
+)
+cookbook_configure
+"""
diff --git a/recipes/wip/libs/kde5/kf5-config/recipe.toml b/recipes/wip/libs/kde5/kf5-config/recipe.toml
index 9f38c0973..63914aa99 100644
--- a/recipes/wip/libs/kde5/kf5-config/recipe.toml
+++ b/recipes/wip/libs/kde5/kf5-config/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, lacking build instructions
+#TODO maybe incomplete script, lacking build instructions
 [source]
 tar = "https://download.kde.org/stable/frameworks/5.112/kconfig-5.112.0.tar.xz"
 [build]
 template = "custom"
+script = """
+COOKBOOK_CONFIGURE="cmake"
+COOKBOOK_CONFIGURE_FLAGS=(
+    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_CROSSCOMPILING=True
+    -DCMAKE_EXE_LINKER_FLAGS="-static"
+    -DCMAKE_INSTALL_PREFIX="/"
+    -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
+    -DCMAKE_SYSTEM_NAME=Generic
+    -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
+    -DCMAKE_VERBOSE_MAKEFILE=On
+"${COOKBOOK_SOURCE}"
+)
+cookbook_configure
+"""
diff --git a/recipes/wip/libs/kde5/kf5-configwidgets/recipe.toml b/recipes/wip/libs/kde5/kf5-configwidgets/recipe.toml
index d99263eac..4c51ea879 100644
--- a/recipes/wip/libs/kde5/kf5-configwidgets/recipe.toml
+++ b/recipes/wip/libs/kde5/kf5-configwidgets/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, lacking build instructions
+#TODO maybe incomplete script, lacking build instructions
 [source]
 tar = "https://download.kde.org/stable/frameworks/5.112/kconfigwidgets-5.112.0.tar.xz"
 [build]
 template = "custom"
+script = """
+COOKBOOK_CONFIGURE="cmake"
+COOKBOOK_CONFIGURE_FLAGS=(
+    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_CROSSCOMPILING=True
+    -DCMAKE_EXE_LINKER_FLAGS="-static"
+    -DCMAKE_INSTALL_PREFIX="/"
+    -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
+    -DCMAKE_SYSTEM_NAME=Generic
+    -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
+    -DCMAKE_VERBOSE_MAKEFILE=On
+"${COOKBOOK_SOURCE}"
+)
+cookbook_configure
+"""
diff --git a/recipes/wip/libs/kde5/kf5-contacts/recipe.toml b/recipes/wip/libs/kde5/kf5-contacts/recipe.toml
index 510bd9f4e..b58290090 100644
--- a/recipes/wip/libs/kde5/kf5-contacts/recipe.toml
+++ b/recipes/wip/libs/kde5/kf5-contacts/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, lacking build instructions
+#TODO maybe incomplete script, lacking build instructions
 [source]
 tar = "https://download.kde.org/stable/frameworks/5.112/kcontacts-5.112.0.tar.xz"
 [build]
 template = "custom"
+script = """
+COOKBOOK_CONFIGURE="cmake"
+COOKBOOK_CONFIGURE_FLAGS=(
+    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_CROSSCOMPILING=True
+    -DCMAKE_EXE_LINKER_FLAGS="-static"
+    -DCMAKE_INSTALL_PREFIX="/"
+    -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
+    -DCMAKE_SYSTEM_NAME=Generic
+    -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
+    -DCMAKE_VERBOSE_MAKEFILE=On
+"${COOKBOOK_SOURCE}"
+)
+cookbook_configure
+"""
diff --git a/recipes/wip/libs/kde5/kf5-coreaddons/recipe.toml b/recipes/wip/libs/kde5/kf5-coreaddons/recipe.toml
index 0f4fe13e3..088f7e648 100644
--- a/recipes/wip/libs/kde5/kf5-coreaddons/recipe.toml
+++ b/recipes/wip/libs/kde5/kf5-coreaddons/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, lacking build instructions
+#TODO maybe incomplete script, lacking build instructions
 [source]
 tar = "https://download.kde.org/stable/frameworks/5.112/kcoreaddons-5.112.0.tar.xz"
 [build]
 template = "custom"
+script = """
+COOKBOOK_CONFIGURE="cmake"
+COOKBOOK_CONFIGURE_FLAGS=(
+    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_CROSSCOMPILING=True
+    -DCMAKE_EXE_LINKER_FLAGS="-static"
+    -DCMAKE_INSTALL_PREFIX="/"
+    -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
+    -DCMAKE_SYSTEM_NAME=Generic
+    -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
+    -DCMAKE_VERBOSE_MAKEFILE=On
+"${COOKBOOK_SOURCE}"
+)
+cookbook_configure
+"""
diff --git a/recipes/wip/libs/kde5/kf5-crash/recipe.toml b/recipes/wip/libs/kde5/kf5-crash/recipe.toml
index 9336b8e7f..a9093fb82 100644
--- a/recipes/wip/libs/kde5/kf5-crash/recipe.toml
+++ b/recipes/wip/libs/kde5/kf5-crash/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, lacking build instructions
+#TODO maybe incomplete script, lacking build instructions
 [source]
 tar = "https://download.kde.org/stable/frameworks/5.112/kcrash-5.112.0.tar.xz"
 [build]
 template = "custom"
+script = """
+COOKBOOK_CONFIGURE="cmake"
+COOKBOOK_CONFIGURE_FLAGS=(
+    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_CROSSCOMPILING=True
+    -DCMAKE_EXE_LINKER_FLAGS="-static"
+    -DCMAKE_INSTALL_PREFIX="/"
+    -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
+    -DCMAKE_SYSTEM_NAME=Generic
+    -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
+    -DCMAKE_VERBOSE_MAKEFILE=On
+"${COOKBOOK_SOURCE}"
+)
+cookbook_configure
+"""
diff --git a/recipes/wip/libs/kde5/kf5-dav/recipe.toml b/recipes/wip/libs/kde5/kf5-dav/recipe.toml
index 672b45d17..4c873a5f0 100644
--- a/recipes/wip/libs/kde5/kf5-dav/recipe.toml
+++ b/recipes/wip/libs/kde5/kf5-dav/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, lacking build instructions
+#TODO maybe incomplete script, lacking build instructions
 [source]
 tar = "https://download.kde.org/stable/frameworks/5.112/kdav-5.112.0.tar.xz"
 [build]
 template = "custom"
+script = """
+COOKBOOK_CONFIGURE="cmake"
+COOKBOOK_CONFIGURE_FLAGS=(
+    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_CROSSCOMPILING=True
+    -DCMAKE_EXE_LINKER_FLAGS="-static"
+    -DCMAKE_INSTALL_PREFIX="/"
+    -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
+    -DCMAKE_SYSTEM_NAME=Generic
+    -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
+    -DCMAKE_VERBOSE_MAKEFILE=On
+"${COOKBOOK_SOURCE}"
+)
+cookbook_configure
+"""
diff --git a/recipes/wip/libs/kde5/kf5-dbusaddons/recipe.toml b/recipes/wip/libs/kde5/kf5-dbusaddons/recipe.toml
index 652715d2b..db0c7eae8 100644
--- a/recipes/wip/libs/kde5/kf5-dbusaddons/recipe.toml
+++ b/recipes/wip/libs/kde5/kf5-dbusaddons/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, lacking build instructions
+#TODO maybe incomplete script, lacking build instructions
 [source]
 tar = "https://download.kde.org/stable/frameworks/5.112/kdbusaddons-5.112.0.tar.xz"
 [build]
 template = "custom"
+script = """
+COOKBOOK_CONFIGURE="cmake"
+COOKBOOK_CONFIGURE_FLAGS=(
+    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_CROSSCOMPILING=True
+    -DCMAKE_EXE_LINKER_FLAGS="-static"
+    -DCMAKE_INSTALL_PREFIX="/"
+    -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
+    -DCMAKE_SYSTEM_NAME=Generic
+    -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
+    -DCMAKE_VERBOSE_MAKEFILE=On
+"${COOKBOOK_SOURCE}"
+)
+cookbook_configure
+"""
diff --git a/recipes/wip/libs/kde5/kf5-declarative/recipe.toml b/recipes/wip/libs/kde5/kf5-declarative/recipe.toml
index be266b6d2..a45a0080e 100644
--- a/recipes/wip/libs/kde5/kf5-declarative/recipe.toml
+++ b/recipes/wip/libs/kde5/kf5-declarative/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, lacking build instructions
+#TODO maybe incomplete script, lacking build instructions
 [source]
 tar = "https://download.kde.org/stable/frameworks/5.112/kdeclarative-5.112.0.tar.xz"
 [build]
 template = "custom"
+script = """
+COOKBOOK_CONFIGURE="cmake"
+COOKBOOK_CONFIGURE_FLAGS=(
+    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_CROSSCOMPILING=True
+    -DCMAKE_EXE_LINKER_FLAGS="-static"
+    -DCMAKE_INSTALL_PREFIX="/"
+    -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
+    -DCMAKE_SYSTEM_NAME=Generic
+    -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
+    -DCMAKE_VERBOSE_MAKEFILE=On
+"${COOKBOOK_SOURCE}"
+)
+cookbook_configure
+"""
diff --git a/recipes/wip/libs/kde5/kf5-dnssd/recipe.toml b/recipes/wip/libs/kde5/kf5-dnssd/recipe.toml
index bd3bb178f..6272ce65d 100644
--- a/recipes/wip/libs/kde5/kf5-dnssd/recipe.toml
+++ b/recipes/wip/libs/kde5/kf5-dnssd/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, lacking build instructions
+#TODO maybe incomplete script, lacking build instructions
 [source]
 tar = "https://download.kde.org/stable/frameworks/5.112/kdnssd-5.112.0.tar.xz"
 [build]
 template = "custom"
+script = """
+COOKBOOK_CONFIGURE="cmake"
+COOKBOOK_CONFIGURE_FLAGS=(
+    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_CROSSCOMPILING=True
+    -DCMAKE_EXE_LINKER_FLAGS="-static"
+    -DCMAKE_INSTALL_PREFIX="/"
+    -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
+    -DCMAKE_SYSTEM_NAME=Generic
+    -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
+    -DCMAKE_VERBOSE_MAKEFILE=On
+"${COOKBOOK_SOURCE}"
+)
+cookbook_configure
+"""
diff --git a/recipes/wip/libs/kde5/kf5-doctools/recipe.toml b/recipes/wip/libs/kde5/kf5-doctools/recipe.toml
index fbcf600a0..a7812d080 100644
--- a/recipes/wip/libs/kde5/kf5-doctools/recipe.toml
+++ b/recipes/wip/libs/kde5/kf5-doctools/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, lacking build instructions
+#TODO maybe incomplete script, lacking build instructions
 [source]
 tar = "https://download.kde.org/stable/frameworks/5.112/kdoctools-5.112.0.tar.xz"
 [build]
 template = "custom"
+script = """
+COOKBOOK_CONFIGURE="cmake"
+COOKBOOK_CONFIGURE_FLAGS=(
+    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_CROSSCOMPILING=True
+    -DCMAKE_EXE_LINKER_FLAGS="-static"
+    -DCMAKE_INSTALL_PREFIX="/"
+    -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
+    -DCMAKE_SYSTEM_NAME=Generic
+    -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
+    -DCMAKE_VERBOSE_MAKEFILE=On
+"${COOKBOOK_SOURCE}"
+)
+cookbook_configure
+"""
diff --git a/recipes/wip/libs/kde5/kf5-emoticons/recipe.toml b/recipes/wip/libs/kde5/kf5-emoticons/recipe.toml
index 6465a062e..2d6c92718 100644
--- a/recipes/wip/libs/kde5/kf5-emoticons/recipe.toml
+++ b/recipes/wip/libs/kde5/kf5-emoticons/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, lacking build instructions
+#TODO maybe incomplete script, lacking build instructions
 [source]
 tar = "https://download.kde.org/stable/frameworks/5.112/kemoticons-5.112.0.tar.xz"
 [build]
 template = "custom"
+script = """
+COOKBOOK_CONFIGURE="cmake"
+COOKBOOK_CONFIGURE_FLAGS=(
+    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_CROSSCOMPILING=True
+    -DCMAKE_EXE_LINKER_FLAGS="-static"
+    -DCMAKE_INSTALL_PREFIX="/"
+    -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
+    -DCMAKE_SYSTEM_NAME=Generic
+    -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
+    -DCMAKE_VERBOSE_MAKEFILE=On
+"${COOKBOOK_SOURCE}"
+)
+cookbook_configure
+"""
diff --git a/recipes/wip/libs/kde5/kf5-filemetadata/recipe.toml b/recipes/wip/libs/kde5/kf5-filemetadata/recipe.toml
index 850d1ff90..16e1794b2 100644
--- a/recipes/wip/libs/kde5/kf5-filemetadata/recipe.toml
+++ b/recipes/wip/libs/kde5/kf5-filemetadata/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, lacking build instructions
+#TODO maybe incomplete script, lacking build instructions
 [source]
 tar = "https://download.kde.org/stable/frameworks/5.112/kfilemetadata-5.112.0.tar.xz"
 [build]
 template = "custom"
+script = """
+COOKBOOK_CONFIGURE="cmake"
+COOKBOOK_CONFIGURE_FLAGS=(
+    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_CROSSCOMPILING=True
+    -DCMAKE_EXE_LINKER_FLAGS="-static"
+    -DCMAKE_INSTALL_PREFIX="/"
+    -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
+    -DCMAKE_SYSTEM_NAME=Generic
+    -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
+    -DCMAKE_VERBOSE_MAKEFILE=On
+"${COOKBOOK_SOURCE}"
+)
+cookbook_configure
+"""
diff --git a/recipes/wip/libs/kde5/kf5-frameworkintegration/recipe.toml b/recipes/wip/libs/kde5/kf5-frameworkintegration/recipe.toml
index 4bbaac73d..06ab5bcac 100644
--- a/recipes/wip/libs/kde5/kf5-frameworkintegration/recipe.toml
+++ b/recipes/wip/libs/kde5/kf5-frameworkintegration/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, lacking build instructions
+#TODO maybe incomplete script, lacking build instructions
 [source]
 tar = "https://download.kde.org/stable/frameworks/5.112/frameworkintegration-5.112.0.tar.xz"
 [build]
 template = "custom"
+script = """
+COOKBOOK_CONFIGURE="cmake"
+COOKBOOK_CONFIGURE_FLAGS=(
+    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_CROSSCOMPILING=True
+    -DCMAKE_EXE_LINKER_FLAGS="-static"
+    -DCMAKE_INSTALL_PREFIX="/"
+    -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
+    -DCMAKE_SYSTEM_NAME=Generic
+    -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
+    -DCMAKE_VERBOSE_MAKEFILE=On
+"${COOKBOOK_SOURCE}"
+)
+cookbook_configure
+"""
diff --git a/recipes/wip/libs/kde5/kf5-globalaccel/recipe.toml b/recipes/wip/libs/kde5/kf5-globalaccel/recipe.toml
index 55008c2fa..834c41092 100644
--- a/recipes/wip/libs/kde5/kf5-globalaccel/recipe.toml
+++ b/recipes/wip/libs/kde5/kf5-globalaccel/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, lacking build instructions
+#TODO maybe incomplete script, lacking build instructions
 [source]
 tar = "https://download.kde.org/stable/frameworks/5.112/kglobalaccel-5.112.0.tar.xz"
 [build]
 template = "custom"
+script = """
+COOKBOOK_CONFIGURE="cmake"
+COOKBOOK_CONFIGURE_FLAGS=(
+    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_CROSSCOMPILING=True
+    -DCMAKE_EXE_LINKER_FLAGS="-static"
+    -DCMAKE_INSTALL_PREFIX="/"
+    -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
+    -DCMAKE_SYSTEM_NAME=Generic
+    -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
+    -DCMAKE_VERBOSE_MAKEFILE=On
+"${COOKBOOK_SOURCE}"
+)
+cookbook_configure
+"""
diff --git a/recipes/wip/libs/kde5/kf5-guiaddons/recipe.toml b/recipes/wip/libs/kde5/kf5-guiaddons/recipe.toml
index 96abf45cf..d4e286559 100644
--- a/recipes/wip/libs/kde5/kf5-guiaddons/recipe.toml
+++ b/recipes/wip/libs/kde5/kf5-guiaddons/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, lacking build instructions
+#TODO maybe incomplete script, lacking build instructions
 [source]
 tar = "https://download.kde.org/stable/frameworks/5.112/kguiaddons-5.112.0.tar.xz"
 [build]
 template = "custom"
+script = """
+COOKBOOK_CONFIGURE="cmake"
+COOKBOOK_CONFIGURE_FLAGS=(
+    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_CROSSCOMPILING=True
+    -DCMAKE_EXE_LINKER_FLAGS="-static"
+    -DCMAKE_INSTALL_PREFIX="/"
+    -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
+    -DCMAKE_SYSTEM_NAME=Generic
+    -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
+    -DCMAKE_VERBOSE_MAKEFILE=On
+"${COOKBOOK_SOURCE}"
+)
+cookbook_configure
+"""
diff --git a/recipes/wip/libs/kde5/kf5-holidays/recipe.toml b/recipes/wip/libs/kde5/kf5-holidays/recipe.toml
index f1b9145a5..f74648291 100644
--- a/recipes/wip/libs/kde5/kf5-holidays/recipe.toml
+++ b/recipes/wip/libs/kde5/kf5-holidays/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, lacking build instructions
+#TODO maybe incomplete script, lacking build instructions
 [source]
 tar = "https://download.kde.org/stable/frameworks/5.112/kholidays-5.112.0.tar.xz"
 [build]
 template = "custom"
+script = """
+COOKBOOK_CONFIGURE="cmake"
+COOKBOOK_CONFIGURE_FLAGS=(
+    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_CROSSCOMPILING=True
+    -DCMAKE_EXE_LINKER_FLAGS="-static"
+    -DCMAKE_INSTALL_PREFIX="/"
+    -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
+    -DCMAKE_SYSTEM_NAME=Generic
+    -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
+    -DCMAKE_VERBOSE_MAKEFILE=On
+"${COOKBOOK_SOURCE}"
+)
+cookbook_configure
+"""
diff --git a/recipes/wip/libs/kde5/kf5-i18n/recipe.toml b/recipes/wip/libs/kde5/kf5-i18n/recipe.toml
index 0125093cd..9d7634097 100644
--- a/recipes/wip/libs/kde5/kf5-i18n/recipe.toml
+++ b/recipes/wip/libs/kde5/kf5-i18n/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, lacking build instructions
+#TODO maybe incomplete script, lacking build instructions
 [source]
 tar = "https://download.kde.org/stable/frameworks/5.112/ki18n-5.112.0.tar.xz"
 [build]
 template = "custom"
+script = """
+COOKBOOK_CONFIGURE="cmake"
+COOKBOOK_CONFIGURE_FLAGS=(
+    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_CROSSCOMPILING=True
+    -DCMAKE_EXE_LINKER_FLAGS="-static"
+    -DCMAKE_INSTALL_PREFIX="/"
+    -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
+    -DCMAKE_SYSTEM_NAME=Generic
+    -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
+    -DCMAKE_VERBOSE_MAKEFILE=On
+"${COOKBOOK_SOURCE}"
+)
+cookbook_configure
+"""
diff --git a/recipes/wip/libs/kde5/kf5-iconthemes/recipe.toml b/recipes/wip/libs/kde5/kf5-iconthemes/recipe.toml
index a932ef5ed..65df52b66 100644
--- a/recipes/wip/libs/kde5/kf5-iconthemes/recipe.toml
+++ b/recipes/wip/libs/kde5/kf5-iconthemes/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, lacking build instructions
+#TODO maybe incomplete script, lacking build instructions
 [source]
 tar = "https://download.kde.org/stable/frameworks/5.112/kiconthemes-5.112.0.tar.xz"
 [build]
 template = "custom"
+script = """
+COOKBOOK_CONFIGURE="cmake"
+COOKBOOK_CONFIGURE_FLAGS=(
+    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_CROSSCOMPILING=True
+    -DCMAKE_EXE_LINKER_FLAGS="-static"
+    -DCMAKE_INSTALL_PREFIX="/"
+    -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
+    -DCMAKE_SYSTEM_NAME=Generic
+    -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
+    -DCMAKE_VERBOSE_MAKEFILE=On
+"${COOKBOOK_SOURCE}"
+)
+cookbook_configure
+"""
diff --git a/recipes/wip/libs/kde5/kf5-idletime/recipe.toml b/recipes/wip/libs/kde5/kf5-idletime/recipe.toml
index 8acb1b156..2f81d93eb 100644
--- a/recipes/wip/libs/kde5/kf5-idletime/recipe.toml
+++ b/recipes/wip/libs/kde5/kf5-idletime/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, lacking build instructions
+#TODO maybe incomplete script, lacking build instructions
 [source]
 tar = "https://download.kde.org/stable/frameworks/5.112/kidletime-5.112.0.tar.xz"
 [build]
 template = "custom"
+script = """
+COOKBOOK_CONFIGURE="cmake"
+COOKBOOK_CONFIGURE_FLAGS=(
+    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_CROSSCOMPILING=True
+    -DCMAKE_EXE_LINKER_FLAGS="-static"
+    -DCMAKE_INSTALL_PREFIX="/"
+    -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
+    -DCMAKE_SYSTEM_NAME=Generic
+    -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
+    -DCMAKE_VERBOSE_MAKEFILE=On
+"${COOKBOOK_SOURCE}"
+)
+cookbook_configure
+"""
diff --git a/recipes/wip/libs/kde5/kf5-init/recipe.toml b/recipes/wip/libs/kde5/kf5-init/recipe.toml
index 95fb36b33..e6df78a79 100644
--- a/recipes/wip/libs/kde5/kf5-init/recipe.toml
+++ b/recipes/wip/libs/kde5/kf5-init/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, lacking build instructions
+#TODO maybe incomplete script, lacking build instructions
 [source]
 tar = "https://download.kde.org/stable/frameworks/5.112/kinit-5.112.0.tar.xz"
 [build]
 template = "custom"
+script = """
+COOKBOOK_CONFIGURE="cmake"
+COOKBOOK_CONFIGURE_FLAGS=(
+    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_CROSSCOMPILING=True
+    -DCMAKE_EXE_LINKER_FLAGS="-static"
+    -DCMAKE_INSTALL_PREFIX="/"
+    -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
+    -DCMAKE_SYSTEM_NAME=Generic
+    -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
+    -DCMAKE_VERBOSE_MAKEFILE=On
+"${COOKBOOK_SOURCE}"
+)
+cookbook_configure
+"""
diff --git a/recipes/wip/libs/kde5/kf5-io/recipe.toml b/recipes/wip/libs/kde5/kf5-io/recipe.toml
index ac39541d4..ea49c5b83 100644
--- a/recipes/wip/libs/kde5/kf5-io/recipe.toml
+++ b/recipes/wip/libs/kde5/kf5-io/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, lacking build instructions
+#TODO maybe incomplete script, lacking build instructions
 [source]
 tar = "https://download.kde.org/stable/frameworks/5.112/kio-5.112.0.tar.xz"
 [build]
 template = "custom"
+script = """
+COOKBOOK_CONFIGURE="cmake"
+COOKBOOK_CONFIGURE_FLAGS=(
+    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_CROSSCOMPILING=True
+    -DCMAKE_EXE_LINKER_FLAGS="-static"
+    -DCMAKE_INSTALL_PREFIX="/"
+    -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
+    -DCMAKE_SYSTEM_NAME=Generic
+    -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
+    -DCMAKE_VERBOSE_MAKEFILE=On
+"${COOKBOOK_SOURCE}"
+)
+cookbook_configure
+"""
diff --git a/recipes/wip/libs/kde5/kf5-itemmodels/recipe.toml b/recipes/wip/libs/kde5/kf5-itemmodels/recipe.toml
index 143c790b7..0120f605a 100644
--- a/recipes/wip/libs/kde5/kf5-itemmodels/recipe.toml
+++ b/recipes/wip/libs/kde5/kf5-itemmodels/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, lacking build instructions
+#TODO maybe incomplete script, lacking build instructions
 [source]
 tar = "https://download.kde.org/stable/frameworks/5.112/kitemmodels-5.112.0.tar.xz"
 [build]
 template = "custom"
+script = """
+COOKBOOK_CONFIGURE="cmake"
+COOKBOOK_CONFIGURE_FLAGS=(
+    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_CROSSCOMPILING=True
+    -DCMAKE_EXE_LINKER_FLAGS="-static"
+    -DCMAKE_INSTALL_PREFIX="/"
+    -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
+    -DCMAKE_SYSTEM_NAME=Generic
+    -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
+    -DCMAKE_VERBOSE_MAKEFILE=On
+"${COOKBOOK_SOURCE}"
+)
+cookbook_configure
+"""
diff --git a/recipes/wip/libs/kde5/kf5-itemviews/recipe.toml b/recipes/wip/libs/kde5/kf5-itemviews/recipe.toml
index 5439efad0..51849a659 100644
--- a/recipes/wip/libs/kde5/kf5-itemviews/recipe.toml
+++ b/recipes/wip/libs/kde5/kf5-itemviews/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, lacking build instructions
+#TODO maybe incomplete script, lacking build instructions
 [source]
 tar = "https://download.kde.org/stable/frameworks/5.112/kitemviews-5.112.0.tar.xz"
 [build]
 template = "custom"
+script = """
+COOKBOOK_CONFIGURE="cmake"
+COOKBOOK_CONFIGURE_FLAGS=(
+    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_CROSSCOMPILING=True
+    -DCMAKE_EXE_LINKER_FLAGS="-static"
+    -DCMAKE_INSTALL_PREFIX="/"
+    -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
+    -DCMAKE_SYSTEM_NAME=Generic
+    -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
+    -DCMAKE_VERBOSE_MAKEFILE=On
+"${COOKBOOK_SOURCE}"
+)
+cookbook_configure
+"""
diff --git a/recipes/wip/libs/kde5/kf5-jobwidgets/recipe.toml b/recipes/wip/libs/kde5/kf5-jobwidgets/recipe.toml
index ec2a9b474..f8380024b 100644
--- a/recipes/wip/libs/kde5/kf5-jobwidgets/recipe.toml
+++ b/recipes/wip/libs/kde5/kf5-jobwidgets/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, lacking build instructions
+#TODO maybe incomplete script, lacking build instructions
 [source]
 tar = "https://download.kde.org/stable/frameworks/5.112/kjobwidgets-5.112.0.tar.xz"
 [build]
 template = "custom"
+script = """
+COOKBOOK_CONFIGURE="cmake"
+COOKBOOK_CONFIGURE_FLAGS=(
+    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_CROSSCOMPILING=True
+    -DCMAKE_EXE_LINKER_FLAGS="-static"
+    -DCMAKE_INSTALL_PREFIX="/"
+    -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
+    -DCMAKE_SYSTEM_NAME=Generic
+    -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
+    -DCMAKE_VERBOSE_MAKEFILE=On
+"${COOKBOOK_SOURCE}"
+)
+cookbook_configure
+"""
diff --git a/recipes/wip/libs/kde5/kf5-kded/recipe.toml b/recipes/wip/libs/kde5/kf5-kded/recipe.toml
index 0dd64762d..f983a3682 100644
--- a/recipes/wip/libs/kde5/kf5-kded/recipe.toml
+++ b/recipes/wip/libs/kde5/kf5-kded/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, lacking build instructions
+#TODO maybe incomplete script, lacking build instructions
 [source]
 tar = "https://download.kde.org/stable/frameworks/5.112/kded-5.112.0.tar.xz"
 [build]
 template = "custom"
+script = """
+COOKBOOK_CONFIGURE="cmake"
+COOKBOOK_CONFIGURE_FLAGS=(
+    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_CROSSCOMPILING=True
+    -DCMAKE_EXE_LINKER_FLAGS="-static"
+    -DCMAKE_INSTALL_PREFIX="/"
+    -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
+    -DCMAKE_SYSTEM_NAME=Generic
+    -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
+    -DCMAKE_VERBOSE_MAKEFILE=On
+"${COOKBOOK_SOURCE}"
+)
+cookbook_configure
+"""
diff --git a/recipes/wip/libs/kde5/kf5-kdesu/recipe.toml b/recipes/wip/libs/kde5/kf5-kdesu/recipe.toml
index 53c95e5dd..a878b1cd5 100644
--- a/recipes/wip/libs/kde5/kf5-kdesu/recipe.toml
+++ b/recipes/wip/libs/kde5/kf5-kdesu/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, lacking build instructions
+#TODO maybe incomplete script, lacking build instructions
 [source]
 tar = "https://download.kde.org/stable/frameworks/5.112/kdesu-5.112.0.tar.xz"
 [build]
 template = "custom"
+script = """
+COOKBOOK_CONFIGURE="cmake"
+COOKBOOK_CONFIGURE_FLAGS=(
+    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_CROSSCOMPILING=True
+    -DCMAKE_EXE_LINKER_FLAGS="-static"
+    -DCMAKE_INSTALL_PREFIX="/"
+    -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
+    -DCMAKE_SYSTEM_NAME=Generic
+    -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
+    -DCMAKE_VERBOSE_MAKEFILE=On
+"${COOKBOOK_SOURCE}"
+)
+cookbook_configure
+"""
diff --git a/recipes/wip/libs/kde5/kf5-kirigami/recipe.toml b/recipes/wip/libs/kde5/kf5-kirigami/recipe.toml
index 9bca3ddb1..14f16f45c 100644
--- a/recipes/wip/libs/kde5/kf5-kirigami/recipe.toml
+++ b/recipes/wip/libs/kde5/kf5-kirigami/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, lacking build instructions
+#TODO maybe incomplete script, lacking build instructions
 [source]
 tar = "https://download.kde.org/stable/frameworks/5.112/kirigami-5.112.0.tar.xz"
 [build]
 template = "custom"
+script = """
+COOKBOOK_CONFIGURE="cmake"
+COOKBOOK_CONFIGURE_FLAGS=(
+    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_CROSSCOMPILING=True
+    -DCMAKE_EXE_LINKER_FLAGS="-static"
+    -DCMAKE_INSTALL_PREFIX="/"
+    -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
+    -DCMAKE_SYSTEM_NAME=Generic
+    -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
+    -DCMAKE_VERBOSE_MAKEFILE=On
+"${COOKBOOK_SOURCE}"
+)
+cookbook_configure
+"""
diff --git a/recipes/wip/libs/kde5/kf5-modem-manager/recipe.toml b/recipes/wip/libs/kde5/kf5-modem-manager/recipe.toml
index 67909fc18..d934ab28f 100644
--- a/recipes/wip/libs/kde5/kf5-modem-manager/recipe.toml
+++ b/recipes/wip/libs/kde5/kf5-modem-manager/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, lacking build instructions
+#TODO maybe incomplete script, lacking build instructions
 [source]
 tar = "https://download.kde.org/stable/frameworks/5.112/modemmanager-qt5-5.112.0.tar.xz"
 [build]
 template = "custom"
+script = """
+COOKBOOK_CONFIGURE="cmake"
+COOKBOOK_CONFIGURE_FLAGS=(
+    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_CROSSCOMPILING=True
+    -DCMAKE_EXE_LINKER_FLAGS="-static"
+    -DCMAKE_INSTALL_PREFIX="/"
+    -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
+    -DCMAKE_SYSTEM_NAME=Generic
+    -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
+    -DCMAKE_VERBOSE_MAKEFILE=On
+"${COOKBOOK_SOURCE}"
+)
+cookbook_configure
+"""
diff --git a/recipes/wip/libs/kde5/kf5-networkmanager/recipe.toml b/recipes/wip/libs/kde5/kf5-networkmanager/recipe.toml
index 71887fc70..4e374638c 100644
--- a/recipes/wip/libs/kde5/kf5-networkmanager/recipe.toml
+++ b/recipes/wip/libs/kde5/kf5-networkmanager/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, lacking build instructions
+#TODO maybe incomplete script, lacking build instructions
 [source]
 tar = "https://download.kde.org/stable/frameworks/5.112/networkmanager-qt5-5.112.0.tar.xz"
 [build]
 template = "custom"
+script = """
+COOKBOOK_CONFIGURE="cmake"
+COOKBOOK_CONFIGURE_FLAGS=(
+    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_CROSSCOMPILING=True
+    -DCMAKE_EXE_LINKER_FLAGS="-static"
+    -DCMAKE_INSTALL_PREFIX="/"
+    -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
+    -DCMAKE_SYSTEM_NAME=Generic
+    -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
+    -DCMAKE_VERBOSE_MAKEFILE=On
+"${COOKBOOK_SOURCE}"
+)
+cookbook_configure
+"""
diff --git a/recipes/wip/libs/kde5/kf5-newstuff/recipe.toml b/recipes/wip/libs/kde5/kf5-newstuff/recipe.toml
index d5b65faa7..f5736ca3a 100644
--- a/recipes/wip/libs/kde5/kf5-newstuff/recipe.toml
+++ b/recipes/wip/libs/kde5/kf5-newstuff/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, lacking build instructions
+#TODO maybe incomplete script, lacking build instructions
 [source]
 tar = "https://download.kde.org/stable/frameworks/5.112/knewstuff-5.112.0.tar.xz"
 [build]
 template = "custom"
+script = """
+COOKBOOK_CONFIGURE="cmake"
+COOKBOOK_CONFIGURE_FLAGS=(
+    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_CROSSCOMPILING=True
+    -DCMAKE_EXE_LINKER_FLAGS="-static"
+    -DCMAKE_INSTALL_PREFIX="/"
+    -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
+    -DCMAKE_SYSTEM_NAME=Generic
+    -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
+    -DCMAKE_VERBOSE_MAKEFILE=On
+"${COOKBOOK_SOURCE}"
+)
+cookbook_configure
+"""
diff --git a/recipes/wip/libs/kde5/kf5-notifications/recipe.toml b/recipes/wip/libs/kde5/kf5-notifications/recipe.toml
index 832267161..bea54a4ef 100644
--- a/recipes/wip/libs/kde5/kf5-notifications/recipe.toml
+++ b/recipes/wip/libs/kde5/kf5-notifications/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, lacking build instructions
+#TODO maybe incomplete script, lacking build instructions
 [source]
 tar = "https://download.kde.org/stable/frameworks/5.112/knotifications-5.112.0.tar.xz"
 [build]
 template = "custom"
+script = """
+COOKBOOK_CONFIGURE="cmake"
+COOKBOOK_CONFIGURE_FLAGS=(
+    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_CROSSCOMPILING=True
+    -DCMAKE_EXE_LINKER_FLAGS="-static"
+    -DCMAKE_INSTALL_PREFIX="/"
+    -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
+    -DCMAKE_SYSTEM_NAME=Generic
+    -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
+    -DCMAKE_VERBOSE_MAKEFILE=On
+"${COOKBOOK_SOURCE}"
+)
+cookbook_configure
+"""
diff --git a/recipes/wip/libs/kde5/kf5-notifyconfig/recipe.toml b/recipes/wip/libs/kde5/kf5-notifyconfig/recipe.toml
index f0c5d2f17..f1bae3131 100644
--- a/recipes/wip/libs/kde5/kf5-notifyconfig/recipe.toml
+++ b/recipes/wip/libs/kde5/kf5-notifyconfig/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, lacking build instructions
+#TODO maybe incomplete script, lacking build instructions
 [source]
 tar = "https://download.kde.org/stable/frameworks/5.112/knotifyconfig-5.112.0.tar.xz"
 [build]
 template = "custom"
+script = """
+COOKBOOK_CONFIGURE="cmake"
+COOKBOOK_CONFIGURE_FLAGS=(
+    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_CROSSCOMPILING=True
+    -DCMAKE_EXE_LINKER_FLAGS="-static"
+    -DCMAKE_INSTALL_PREFIX="/"
+    -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
+    -DCMAKE_SYSTEM_NAME=Generic
+    -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
+    -DCMAKE_VERBOSE_MAKEFILE=On
+"${COOKBOOK_SOURCE}"
+)
+cookbook_configure
+"""
diff --git a/recipes/wip/libs/kde5/kf5-package/recipe.toml b/recipes/wip/libs/kde5/kf5-package/recipe.toml
index 7391c3790..bededd5eb 100644
--- a/recipes/wip/libs/kde5/kf5-package/recipe.toml
+++ b/recipes/wip/libs/kde5/kf5-package/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, lacking build instructions
+#TODO maybe incomplete script, lacking build instructions
 [source]
 tar = "https://download.kde.org/stable/frameworks/5.112/kpackage-5.112.0.tar.xz"
 [build]
 template = "custom"
+script = """
+COOKBOOK_CONFIGURE="cmake"
+COOKBOOK_CONFIGURE_FLAGS=(
+    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_CROSSCOMPILING=True
+    -DCMAKE_EXE_LINKER_FLAGS="-static"
+    -DCMAKE_INSTALL_PREFIX="/"
+    -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
+    -DCMAKE_SYSTEM_NAME=Generic
+    -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
+    -DCMAKE_VERBOSE_MAKEFILE=On
+"${COOKBOOK_SOURCE}"
+)
+cookbook_configure
+"""
diff --git a/recipes/wip/libs/kde5/kf5-people/recipe.toml b/recipes/wip/libs/kde5/kf5-people/recipe.toml
index 078ece73d..61bdbad2b 100644
--- a/recipes/wip/libs/kde5/kf5-people/recipe.toml
+++ b/recipes/wip/libs/kde5/kf5-people/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, lacking build instructions
+#TODO maybe incomplete script, lacking build instructions
 [source]
 tar = "https://download.kde.org/stable/frameworks/5.112/kpeople-5.112.0.tar.xz"
 [build]
 template = "custom"
+script = """
+COOKBOOK_CONFIGURE="cmake"
+COOKBOOK_CONFIGURE_FLAGS=(
+    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_CROSSCOMPILING=True
+    -DCMAKE_EXE_LINKER_FLAGS="-static"
+    -DCMAKE_INSTALL_PREFIX="/"
+    -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
+    -DCMAKE_SYSTEM_NAME=Generic
+    -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
+    -DCMAKE_VERBOSE_MAKEFILE=On
+"${COOKBOOK_SOURCE}"
+)
+cookbook_configure
+"""
diff --git a/recipes/wip/libs/kde5/kf5-plasma-framework/recipe.toml b/recipes/wip/libs/kde5/kf5-plasma-framework/recipe.toml
index 6f7b88ecc..f42423a9c 100644
--- a/recipes/wip/libs/kde5/kf5-plasma-framework/recipe.toml
+++ b/recipes/wip/libs/kde5/kf5-plasma-framework/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, lacking build instructions
+#TODO maybe incomplete script, lacking build instructions
 [source]
 tar = "https://download.kde.org/stable/frameworks/5.112/plasma-framework-5.112.0.tar.xz"
 [build]
 template = "custom"
+script = """
+COOKBOOK_CONFIGURE="cmake"
+COOKBOOK_CONFIGURE_FLAGS=(
+    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_CROSSCOMPILING=True
+    -DCMAKE_EXE_LINKER_FLAGS="-static"
+    -DCMAKE_INSTALL_PREFIX="/"
+    -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
+    -DCMAKE_SYSTEM_NAME=Generic
+    -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
+    -DCMAKE_VERBOSE_MAKEFILE=On
+"${COOKBOOK_SOURCE}"
+)
+cookbook_configure
+"""
diff --git a/recipes/wip/libs/kde5/kf5-plotting/recipe.toml b/recipes/wip/libs/kde5/kf5-plotting/recipe.toml
index 4cbb3b971..c0b9511cc 100644
--- a/recipes/wip/libs/kde5/kf5-plotting/recipe.toml
+++ b/recipes/wip/libs/kde5/kf5-plotting/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, lacking build instructions
+#TODO maybe incomplete script, lacking build instructions
 [source]
 tar = "https://download.kde.org/stable/frameworks/5.112/kplotting-5.112.0.tar.xz"
 [build]
 template = "custom"
+script = """
+COOKBOOK_CONFIGURE="cmake"
+COOKBOOK_CONFIGURE_FLAGS=(
+    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_CROSSCOMPILING=True
+    -DCMAKE_EXE_LINKER_FLAGS="-static"
+    -DCMAKE_INSTALL_PREFIX="/"
+    -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
+    -DCMAKE_SYSTEM_NAME=Generic
+    -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
+    -DCMAKE_VERBOSE_MAKEFILE=On
+"${COOKBOOK_SOURCE}"
+)
+cookbook_configure
+"""
diff --git a/recipes/wip/libs/kde5/kf5-prison/recipe.toml b/recipes/wip/libs/kde5/kf5-prison/recipe.toml
index 3d98a4698..81a489049 100644
--- a/recipes/wip/libs/kde5/kf5-prison/recipe.toml
+++ b/recipes/wip/libs/kde5/kf5-prison/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, lacking build instructions
+#TODO maybe incomplte script, lacking build instructions
 [source]
 tar = "https://download.kde.org/stable/frameworks/5.112/prison-5.112.0.tar.xz"
 [build]
 template = "custom"
+script = """
+COOKBOOK_CONFIGURE="cmake"
+COOKBOOK_CONFIGURE_FLAGS=(
+    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_CROSSCOMPILING=True
+    -DCMAKE_EXE_LINKER_FLAGS="-static"
+    -DCMAKE_INSTALL_PREFIX="/"
+    -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
+    -DCMAKE_SYSTEM_NAME=Generic
+    -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
+    -DCMAKE_VERBOSE_MAKEFILE=On
+"${COOKBOOK_SOURCE}"
+)
+cookbook_configure
+"""
diff --git a/recipes/wip/libs/kde5/kf5-pty/recipe.toml b/recipes/wip/libs/kde5/kf5-pty/recipe.toml
index 048f371f5..62d809cc6 100644
--- a/recipes/wip/libs/kde5/kf5-pty/recipe.toml
+++ b/recipes/wip/libs/kde5/kf5-pty/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, lacking build instructions
+#TODO maybe incomplete script, lacking build instructions
 [source]
 tar = "https://download.kde.org/stable/frameworks/5.112/kpty-5.112.0.tar.xz"
 [build]
 template = "custom"
+script = """
+COOKBOOK_CONFIGURE="cmake"
+COOKBOOK_CONFIGURE_FLAGS=(
+    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_CROSSCOMPILING=True
+    -DCMAKE_EXE_LINKER_FLAGS="-static"
+    -DCMAKE_INSTALL_PREFIX="/"
+    -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
+    -DCMAKE_SYSTEM_NAME=Generic
+    -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
+    -DCMAKE_VERBOSE_MAKEFILE=On
+"${COOKBOOK_SOURCE}"
+)
+cookbook_configure
+"""
diff --git a/recipes/wip/libs/kde5/kf5-purpose/recipe.toml b/recipes/wip/libs/kde5/kf5-purpose/recipe.toml
index a54220947..c5e260e2c 100644
--- a/recipes/wip/libs/kde5/kf5-purpose/recipe.toml
+++ b/recipes/wip/libs/kde5/kf5-purpose/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, lacking build instructions
+#TODO maybe incomplete script, lacking build instructions
 [source]
 tar = "https://download.kde.org/stable/frameworks/5.112/purpose-5.112.0.tar.xz"
 [build]
 template = "custom"
+script = """
+COOKBOOK_CONFIGURE="cmake"
+COOKBOOK_CONFIGURE_FLAGS=(
+    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_CROSSCOMPILING=True
+    -DCMAKE_EXE_LINKER_FLAGS="-static"
+    -DCMAKE_INSTALL_PREFIX="/"
+    -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
+    -DCMAKE_SYSTEM_NAME=Generic
+    -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
+    -DCMAKE_VERBOSE_MAKEFILE=On
+"${COOKBOOK_SOURCE}"
+)
+cookbook_configure
+"""
diff --git a/recipes/wip/libs/kde5/kf5-qqc2-desktop-style/recipe.toml b/recipes/wip/libs/kde5/kf5-qqc2-desktop-style/recipe.toml
index cf907877d..c64dcb2a4 100644
--- a/recipes/wip/libs/kde5/kf5-qqc2-desktop-style/recipe.toml
+++ b/recipes/wip/libs/kde5/kf5-qqc2-desktop-style/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, lacking build instructions
+#TODO maybe incomplete script, lacking build instructions
 [source]
 tar = "https://download.kde.org/stable/frameworks/5.112/qqc2-desktop-style-5.112.0.tar.xz"
 [build]
 template = "custom"
+script = """
+COOKBOOK_CONFIGURE="cmake"
+COOKBOOK_CONFIGURE_FLAGS=(
+    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_CROSSCOMPILING=True
+    -DCMAKE_EXE_LINKER_FLAGS="-static"
+    -DCMAKE_INSTALL_PREFIX="/"
+    -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
+    -DCMAKE_SYSTEM_NAME=Generic
+    -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
+    -DCMAKE_VERBOSE_MAKEFILE=On
+"${COOKBOOK_SOURCE}"
+)
+cookbook_configure
+"""
diff --git a/recipes/wip/libs/kde5/kf5-quickcharts/recipe.toml b/recipes/wip/libs/kde5/kf5-quickcharts/recipe.toml
index 517a67e9c..5ae322741 100644
--- a/recipes/wip/libs/kde5/kf5-quickcharts/recipe.toml
+++ b/recipes/wip/libs/kde5/kf5-quickcharts/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, lacking build instructions
+#TODO maybe incomplete script, lacking build instructions
 [source]
 tar = "https://download.kde.org/stable/frameworks/5.112/kquickcharts-5.112.0.tar.xz"
 [build]
 template = "custom"
+script = """
+COOKBOOK_CONFIGURE="cmake"
+COOKBOOK_CONFIGURE_FLAGS=(
+    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_CROSSCOMPILING=True
+    -DCMAKE_EXE_LINKER_FLAGS="-static"
+    -DCMAKE_INSTALL_PREFIX="/"
+    -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
+    -DCMAKE_SYSTEM_NAME=Generic
+    -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
+    -DCMAKE_VERBOSE_MAKEFILE=On
+"${COOKBOOK_SOURCE}"
+)
+cookbook_configure
+"""
diff --git a/recipes/wip/libs/kde5/kf5-runner/recipe.toml b/recipes/wip/libs/kde5/kf5-runner/recipe.toml
index 87a4f8c13..18a44150f 100644
--- a/recipes/wip/libs/kde5/kf5-runner/recipe.toml
+++ b/recipes/wip/libs/kde5/kf5-runner/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, lacking build instructions
+#TODO maybe incomplete script, lacking build instructions
 [source]
 tar = "https://download.kde.org/stable/frameworks/5.112/krunner-5.112.0.tar.xz"
 [build]
 template = "custom"
+script = """
+COOKBOOK_CONFIGURE="cmake"
+COOKBOOK_CONFIGURE_FLAGS=(
+    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_CROSSCOMPILING=True
+    -DCMAKE_EXE_LINKER_FLAGS="-static"
+    -DCMAKE_INSTALL_PREFIX="/"
+    -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
+    -DCMAKE_SYSTEM_NAME=Generic
+    -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
+    -DCMAKE_VERBOSE_MAKEFILE=On
+"${COOKBOOK_SOURCE}"
+)
+cookbook_configure
+"""
diff --git a/recipes/wip/libs/kde5/kf5-service/recipe.toml b/recipes/wip/libs/kde5/kf5-service/recipe.toml
index cdf8c2379..65ea3bc41 100644
--- a/recipes/wip/libs/kde5/kf5-service/recipe.toml
+++ b/recipes/wip/libs/kde5/kf5-service/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, lacking build instructions
+#TODO maybe incomplete script, lacking build instructions
 [source]
 tar = "https://download.kde.org/stable/frameworks/5.112/kservice-5.112.0.tar.xz"
 [build]
 template = "custom"
+script = """
+COOKBOOK_CONFIGURE="cmake"
+COOKBOOK_CONFIGURE_FLAGS=(
+    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_CROSSCOMPILING=True
+    -DCMAKE_EXE_LINKER_FLAGS="-static"
+    -DCMAKE_INSTALL_PREFIX="/"
+    -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
+    -DCMAKE_SYSTEM_NAME=Generic
+    -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
+    -DCMAKE_VERBOSE_MAKEFILE=On
+"${COOKBOOK_SOURCE}"
+)
+cookbook_configure
+"""
diff --git a/recipes/wip/libs/kde5/kf5-solid/recipe.toml b/recipes/wip/libs/kde5/kf5-solid/recipe.toml
index 0ddc6589a..3025bb028 100644
--- a/recipes/wip/libs/kde5/kf5-solid/recipe.toml
+++ b/recipes/wip/libs/kde5/kf5-solid/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, lacking build instructions
+#TODO maybe incomplete script, lacking build instructions
 [source]
 tar = "https://download.kde.org/stable/frameworks/5.112/solid-5.112.0.tar.xz"
 [build]
 template = "custom"
+script = """
+COOKBOOK_CONFIGURE="cmake"
+COOKBOOK_CONFIGURE_FLAGS=(
+    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_CROSSCOMPILING=True
+    -DCMAKE_EXE_LINKER_FLAGS="-static"
+    -DCMAKE_INSTALL_PREFIX="/"
+    -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
+    -DCMAKE_SYSTEM_NAME=Generic
+    -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
+    -DCMAKE_VERBOSE_MAKEFILE=On
+"${COOKBOOK_SOURCE}"
+)
+cookbook_configure
+"""
diff --git a/recipes/wip/libs/kde5/kf5-sonnet/recipe.toml b/recipes/wip/libs/kde5/kf5-sonnet/recipe.toml
index 4f7a13eb0..1f9f1387a 100644
--- a/recipes/wip/libs/kde5/kf5-sonnet/recipe.toml
+++ b/recipes/wip/libs/kde5/kf5-sonnet/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, lacking build instructions
+#TODO maybe incomplete script, lacking build instructions
 [source]
 tar = "https://download.kde.org/stable/frameworks/5.112/sonnet-5.112.0.tar.xz"
 [build]
 template = "custom"
+script = """
+COOKBOOK_CONFIGURE="cmake"
+COOKBOOK_CONFIGURE_FLAGS=(
+    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_CROSSCOMPILING=True
+    -DCMAKE_EXE_LINKER_FLAGS="-static"
+    -DCMAKE_INSTALL_PREFIX="/"
+    -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
+    -DCMAKE_SYSTEM_NAME=Generic
+    -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
+    -DCMAKE_VERBOSE_MAKEFILE=On
+"${COOKBOOK_SOURCE}"
+)
+cookbook_configure
+"""
diff --git a/recipes/wip/libs/kde5/kf5-syndication/recipe.toml b/recipes/wip/libs/kde5/kf5-syndication/recipe.toml
index 3c97390f4..a99344ea6 100644
--- a/recipes/wip/libs/kde5/kf5-syndication/recipe.toml
+++ b/recipes/wip/libs/kde5/kf5-syndication/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, lacking build instructions
+#TODO maybe incomplete script, lacking build instructions
 [source]
 tar = "https://download.kde.org/stable/frameworks/5.112/syndication-5.112.0.tar.xz"
 [build]
 template = "custom"
+script = """
+COOKBOOK_CONFIGURE="cmake"
+COOKBOOK_CONFIGURE_FLAGS=(
+    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_CROSSCOMPILING=True
+    -DCMAKE_EXE_LINKER_FLAGS="-static"
+    -DCMAKE_INSTALL_PREFIX="/"
+    -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
+    -DCMAKE_SYSTEM_NAME=Generic
+    -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
+    -DCMAKE_VERBOSE_MAKEFILE=On
+"${COOKBOOK_SOURCE}"
+)
+cookbook_configure
+"""
diff --git a/recipes/wip/libs/kde5/kf5-syntax-highlighting/recipe.toml b/recipes/wip/libs/kde5/kf5-syntax-highlighting/recipe.toml
index 350a3d9f1..74e0dda78 100644
--- a/recipes/wip/libs/kde5/kf5-syntax-highlighting/recipe.toml
+++ b/recipes/wip/libs/kde5/kf5-syntax-highlighting/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, lacking build instructions
+#TODO maybe incomplete script, lacking build instructions
 [source]
 tar = "https://download.kde.org/stable/frameworks/5.112/syntax-highlighting-5.112.0.tar.xz"
 [build]
 template = "custom"
+script = """
+COOKBOOK_CONFIGURE="cmake"
+COOKBOOK_CONFIGURE_FLAGS=(
+    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_CROSSCOMPILING=True
+    -DCMAKE_EXE_LINKER_FLAGS="-static"
+    -DCMAKE_INSTALL_PREFIX="/"
+    -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
+    -DCMAKE_SYSTEM_NAME=Generic
+    -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
+    -DCMAKE_VERBOSE_MAKEFILE=On
+"${COOKBOOK_SOURCE}"
+)
+cookbook_configure
+"""
diff --git a/recipes/wip/libs/kde5/kf5-texteditor/recipe.toml b/recipes/wip/libs/kde5/kf5-texteditor/recipe.toml
index 3165c1555..f8f2ed56d 100644
--- a/recipes/wip/libs/kde5/kf5-texteditor/recipe.toml
+++ b/recipes/wip/libs/kde5/kf5-texteditor/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, lacking build instructions
+#TODO maybe incomplete script, lacking build instructions
 [source]
 tar = "https://download.kde.org/stable/frameworks/5.112/ktexteditor-5.112.0.tar.xz"
 [build]
 template = "custom"
+script = """
+COOKBOOK_CONFIGURE="cmake"
+COOKBOOK_CONFIGURE_FLAGS=(
+    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_CROSSCOMPILING=True
+    -DCMAKE_EXE_LINKER_FLAGS="-static"
+    -DCMAKE_INSTALL_PREFIX="/"
+    -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
+    -DCMAKE_SYSTEM_NAME=Generic
+    -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
+    -DCMAKE_VERBOSE_MAKEFILE=On
+"${COOKBOOK_SOURCE}"
+)
+cookbook_configure
+"""
diff --git a/recipes/wip/libs/kde5/kf5-textwidgets/recipe.toml b/recipes/wip/libs/kde5/kf5-textwidgets/recipe.toml
index 18d5489ac..de2867210 100644
--- a/recipes/wip/libs/kde5/kf5-textwidgets/recipe.toml
+++ b/recipes/wip/libs/kde5/kf5-textwidgets/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, lacking build instructions
+#TODO maybe incomplete script, lacking build instructions
 [source]
 tar = "https://download.kde.org/stable/frameworks/5.112/ktextwidgets-5.112.0.tar.xz"
 [build]
 template = "custom"
+script = """
+COOKBOOK_CONFIGURE="cmake"
+COOKBOOK_CONFIGURE_FLAGS=(
+    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_CROSSCOMPILING=True
+    -DCMAKE_EXE_LINKER_FLAGS="-static"
+    -DCMAKE_INSTALL_PREFIX="/"
+    -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
+    -DCMAKE_SYSTEM_NAME=Generic
+    -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
+    -DCMAKE_VERBOSE_MAKEFILE=On
+"${COOKBOOK_SOURCE}"
+)
+cookbook_configure
+"""
diff --git a/recipes/wip/libs/kde5/kf5-threadweaver/recipe.toml b/recipes/wip/libs/kde5/kf5-threadweaver/recipe.toml
index 608b567a3..3943c71c1 100644
--- a/recipes/wip/libs/kde5/kf5-threadweaver/recipe.toml
+++ b/recipes/wip/libs/kde5/kf5-threadweaver/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, lacking build instructions
+#TODO maybe incomplete script, lacking build instructions
 [source]
 tar = "https://download.kde.org/stable/frameworks/5.112/threadweaver-5.112.0.tar.xz"
 [build]
 template = "custom"
+script = """
+COOKBOOK_CONFIGURE="cmake"
+COOKBOOK_CONFIGURE_FLAGS=(
+    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_CROSSCOMPILING=True
+    -DCMAKE_EXE_LINKER_FLAGS="-static"
+    -DCMAKE_INSTALL_PREFIX="/"
+    -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
+    -DCMAKE_SYSTEM_NAME=Generic
+    -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
+    -DCMAKE_VERBOSE_MAKEFILE=On
+"${COOKBOOK_SOURCE}"
+)
+cookbook_configure
+"""
diff --git a/recipes/wip/libs/kde5/kf5-unitconversion/recipe.toml b/recipes/wip/libs/kde5/kf5-unitconversion/recipe.toml
index 9a4515945..418bc9cd1 100644
--- a/recipes/wip/libs/kde5/kf5-unitconversion/recipe.toml
+++ b/recipes/wip/libs/kde5/kf5-unitconversion/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, lacking build instructions
+#TODO maybe incomplete script, lacking build instructions
 [source]
 tar = "https://download.kde.org/stable/frameworks/5.112/kunitconversion-5.112.0.tar.xz"
 [build]
 template = "custom"
+script = """
+COOKBOOK_CONFIGURE="cmake"
+COOKBOOK_CONFIGURE_FLAGS=(
+    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_CROSSCOMPILING=True
+    -DCMAKE_EXE_LINKER_FLAGS="-static"
+    -DCMAKE_INSTALL_PREFIX="/"
+    -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
+    -DCMAKE_SYSTEM_NAME=Generic
+    -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
+    -DCMAKE_VERBOSE_MAKEFILE=On
+"${COOKBOOK_SOURCE}"
+)
+cookbook_configure
+"""
diff --git a/recipes/wip/libs/kde5/kf5-wayland/recipe.toml b/recipes/wip/libs/kde5/kf5-wayland/recipe.toml
index 39003af42..b298ff58c 100644
--- a/recipes/wip/libs/kde5/kf5-wayland/recipe.toml
+++ b/recipes/wip/libs/kde5/kf5-wayland/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, lacking build instructions
+#TODO maybe incomplete script, lacking build instructions
 [source]
 tar = "https://download.kde.org/stable/frameworks/5.112/kwayland-5.112.0.tar.xz"
 [build]
 template = "custom"
+script = """
+COOKBOOK_CONFIGURE="cmake"
+COOKBOOK_CONFIGURE_FLAGS=(
+    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_CROSSCOMPILING=True
+    -DCMAKE_EXE_LINKER_FLAGS="-static"
+    -DCMAKE_INSTALL_PREFIX="/"
+    -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
+    -DCMAKE_SYSTEM_NAME=Generic
+    -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
+    -DCMAKE_VERBOSE_MAKEFILE=On
+"${COOKBOOK_SOURCE}"
+)
+cookbook_configure
+"""
diff --git a/recipes/wip/libs/kde5/kf5-widgetaddons/recipe.toml b/recipes/wip/libs/kde5/kf5-widgetaddons/recipe.toml
index 51d84f75a..01916dc3f 100644
--- a/recipes/wip/libs/kde5/kf5-widgetaddons/recipe.toml
+++ b/recipes/wip/libs/kde5/kf5-widgetaddons/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, lacking build instructions
+#TODO maybe incomplete script, lacking build instructions
 [source]
 tar = "https://download.kde.org/stable/frameworks/5.112/kwidgetaddons-5.112.0.tar.xz"
 [build]
 template = "custom"
+script = """
+COOKBOOK_CONFIGURE="cmake"
+COOKBOOK_CONFIGURE_FLAGS=(
+    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_CROSSCOMPILING=True
+    -DCMAKE_EXE_LINKER_FLAGS="-static"
+    -DCMAKE_INSTALL_PREFIX="/"
+    -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
+    -DCMAKE_SYSTEM_NAME=Generic
+    -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
+    -DCMAKE_VERBOSE_MAKEFILE=On
+"${COOKBOOK_SOURCE}"
+)
+cookbook_configure
+"""
diff --git a/recipes/wip/libs/kde5/kf5-windowsystem/recipe.toml b/recipes/wip/libs/kde5/kf5-windowsystem/recipe.toml
index ab5f51fcb..fb90653ad 100644
--- a/recipes/wip/libs/kde5/kf5-windowsystem/recipe.toml
+++ b/recipes/wip/libs/kde5/kf5-windowsystem/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, lacking build instructions
+#TODO maybe incomplete script, lacking build instructions
 [source]
 tar = "https://download.kde.org/stable/frameworks/5.112/kwindowsystem-5.112.0.tar.xz"
 [build]
 template = "custom"
+script = """
+COOKBOOK_CONFIGURE="cmake"
+COOKBOOK_CONFIGURE_FLAGS=(
+    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_CROSSCOMPILING=True
+    -DCMAKE_EXE_LINKER_FLAGS="-static"
+    -DCMAKE_INSTALL_PREFIX="/"
+    -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
+    -DCMAKE_SYSTEM_NAME=Generic
+    -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
+    -DCMAKE_VERBOSE_MAKEFILE=On
+"${COOKBOOK_SOURCE}"
+)
+cookbook_configure
+"""
diff --git a/recipes/wip/libs/kde5/kf5-xmlgui/recipe.toml b/recipes/wip/libs/kde5/kf5-xmlgui/recipe.toml
index 66bec6829..0ded2726a 100644
--- a/recipes/wip/libs/kde5/kf5-xmlgui/recipe.toml
+++ b/recipes/wip/libs/kde5/kf5-xmlgui/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, lacking build instructions
+#TODO maybe incomplete script, lacking build instructions
 [source]
 tar = "https://download.kde.org/stable/frameworks/5.112/kxmlgui-5.112.0.tar.xz"
 [build]
 template = "custom"
+script = """
+COOKBOOK_CONFIGURE="cmake"
+COOKBOOK_CONFIGURE_FLAGS=(
+    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_CROSSCOMPILING=True
+    -DCMAKE_EXE_LINKER_FLAGS="-static"
+    -DCMAKE_INSTALL_PREFIX="/"
+    -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
+    -DCMAKE_SYSTEM_NAME=Generic
+    -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
+    -DCMAKE_VERBOSE_MAKEFILE=On
+"${COOKBOOK_SOURCE}"
+)
+cookbook_configure
+"""
-- 
GitLab