From c3a3a6c8d1fbadf088bfc721321c894ea11b01fd Mon Sep 17 00:00:00 2001 From: Andreas Sturmlechner Date: Mon, 23 Dec 2024 06:43:17 +0100 Subject: [PATCH] frameworks.kde.org.eclass: Simplify SLOT assignment Signed-off-by: Andreas Sturmlechner --- eclass/frameworks.kde.org.eclass | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/eclass/frameworks.kde.org.eclass b/eclass/frameworks.kde.org.eclass index e1dc77c935..f66a6b7efb 100644 --- a/eclass/frameworks.kde.org.eclass +++ b/eclass/frameworks.kde.org.eclass @@ -46,15 +46,14 @@ SLOT=6 if ver_test ${PV} -lt 5.240; then SLOT=5 fi -if [[ ${PN} == extra-cmake-modules ]]; then - SLOT=0 -else - if [[ ${KDE_BUILD_TYPE} == release ]]; then +case ${PN} in + extra-cmake-modules) + SLOT=0 + ;; + *) SLOT=${SLOT}/${KDE_CATV} - else - SLOT=${SLOT}/9999 - fi -fi + ;; +esac # @ECLASS_VARIABLE: KDE_ORG_SCHEDULE_URI # @INTERNAL