From cdb2616a960207fb1f0035fc410f1f71179c93a7 Mon Sep 17 00:00:00 2001 From: sergio Date: Tue, 14 Jul 2026 06:53:29 -0400 Subject: [PATCH] =?UTF-8?q?kde/Plasma:=20konsole=2025.04.3=20+=20kpty=206.?= =?UTF-8?q?27=20=E2=80=94=20la=20PRIMERA=20app=20(terminal)=20desde=20fuen?= =?UTF-8?q?te?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit konsole (emulador de terminal) construye+sella con musl+zig-cc. Deps nuevas: kpty (pseudo-terminal, cb0f3836) + icu4c + qtmultimedia + cierre knewstuff (attica/kpackage/kirigami). DocTools/doc a opcional. Primera app del escritorio KDE construida — el shell ahora tiene con qué abrir algo. --- recipes/incoming-kde/konsole.toml | 52 +++++++++++++++++++++++++++++++ recipes/incoming-kde/kpty.toml | 40 ++++++++++++++++++++++++ 2 files changed, 92 insertions(+) create mode 100644 recipes/incoming-kde/konsole.toml create mode 100644 recipes/incoming-kde/kpty.toml diff --git a/recipes/incoming-kde/konsole.toml b/recipes/incoming-kde/konsole.toml new file mode 100644 index 00000000..ce9628b7 --- /dev/null +++ b/recipes/incoming-kde/konsole.toml @@ -0,0 +1,52 @@ +# konsole 25.04.3 — el emulador de terminal de KDE (release-service). Primera APP del escritorio. +# Patrón KF6 app (dynamic, wrapper zig, ECM). Usa kpty (pseudo-terminal). +name = "konsole" +version = "25.04.3" + +[source] +tarball = "https://download.kde.org/stable/release-service/25.04.3/src/konsole-25.04.3.tar.xz" +sha256 = "2f6833e22a71f4191e7ee45f3dce37e22a3be36d0fa592fdfffce207acac3939" + +[build] +compiler = "zig-cc" +target = "x86_64-linux-musl" +link = "dynamic" +flags = [] + +[build.phases] +configure = ''' +rm -rf po doc +# KF6DocTools REQUIRED → docs (rm doc). A opcional (find_package + set_package_properties TYPE). +sed -i 's/find_package(KF6DocTools[^)]*REQUIRED)/find_package(KF6DocTools)/' CMakeLists.txt +sed -i '/set_package_properties(KF6DocTools/,/)/ s/TYPE REQUIRED/TYPE OPTIONAL/' CMakeLists.txt +sed -i '/add_subdirectory(doc)/d' CMakeLists.txt +ZW="$PWD/.zwrap"; mkdir -p "$ZW" +cat > "$ZW/cc" <<'W' +#!/bin/sh +a=""; for x in "$@"; do [ "$x" = "-Wl,--fatal-warnings" ] && continue; a="$a $x"; done +exec /opt/zig/zig cc -mcpu=baseline $a +W +cat > "$ZW/cxx" <<'W' +#!/bin/sh +a=""; for x in "$@"; do [ "$x" = "-Wl,--fatal-warnings" ] && continue; a="$a $x"; done +exec /opt/zig/zig c++ -mcpu=baseline $a +W +chmod +x "$ZW/cc" "$ZW/cxx" +cmake -B build -G Ninja -Wno-dev \ + -DCMAKE_C_COMPILER="$ZW/cc" -DCMAKE_CXX_COMPILER="$ZW/cxx" -DCMAKE_ASM_COMPILER="$ZW/cc" \ + -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_PREFIX_PATH=/usr \ + -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=OFF -DBUILD_TESTING=OFF +''' +compile = "cmake --build build" +install = "DESTDIR=/out cmake --install build" + +[deps] +build = ["cmake", "samurai", "python3", "pkgconf", "qtbase", "dbus", "extra-cmake-modules", "qttools", + "gettext-tiny", "mesa", "libdrm", "libxkbcommon", "wayland", "qtdeclarative", "qt5compat", "qtmultimedia", + "kpty", "kbookmarks", "kconfig", "kconfigwidgets", "kcoreaddons", "kcrash", "kguiaddons", "ki18n", + "kiconthemes", "kdbusaddons", "kio", "knewstuff", "knotifications", "knotifyconfig", "kparts", + "kservice", "ktextwidgets", "kwidgetsaddons", "kwindowsystem", "kxmlgui", "kglobalaccel", + "kcompletion", "kitemviews", "kcodecs", "kcolorscheme", "kjobwidgets", "karchive", "sonnet", + "kauth", "solid", "kdnssd", "icu4c", "attica", "kpackage", "kirigami", "kbookmarks", "kparts", + "libX11", "xorgproto", "libXau", "libXdmcp", "libXext", "libXrender", "libXfixes", "libXi", + "libxcb", "xcb-util", "xcb-util-keysyms", "xcb-util-wm", "xcb-util-image", "xcb-util-renderutil"] diff --git a/recipes/incoming-kde/kpty.toml b/recipes/incoming-kde/kpty.toml new file mode 100644 index 00000000..72540c6e --- /dev/null +++ b/recipes/incoming-kde/kpty.toml @@ -0,0 +1,40 @@ +# kpty 6.27.0 — KDE Frameworks 6: interfaz a pseudo-terminales (pty). Dep de konsole. Patrón KF6. +name = "kpty" +version = "6.27.0" + +[source] +tarball = "https://download.kde.org/stable/frameworks/6.27/kpty-6.27.0.tar.xz" +sha256 = "ad06bfda8df019bb2b33567ce3df539bcc107e0dfe004281e5ff9ae4617c6ecc" + +[build] +compiler = "zig-cc" +target = "x86_64-linux-musl" +link = "dynamic" +flags = [] + +[build.phases] +configure = ''' +rm -rf po +ZW="$PWD/.zwrap"; mkdir -p "$ZW" +cat > "$ZW/cc" <<'W' +#!/bin/sh +a=""; for x in "$@"; do [ "$x" = "-Wl,--fatal-warnings" ] && continue; a="$a $x"; done +exec /opt/zig/zig cc -mcpu=baseline $a +W +cat > "$ZW/cxx" <<'W' +#!/bin/sh +a=""; for x in "$@"; do [ "$x" = "-Wl,--fatal-warnings" ] && continue; a="$a $x"; done +exec /opt/zig/zig c++ -mcpu=baseline $a +W +chmod +x "$ZW/cc" "$ZW/cxx" +cmake -B build -G Ninja -Wno-dev \ + -DCMAKE_C_COMPILER="$ZW/cc" -DCMAKE_CXX_COMPILER="$ZW/cxx" -DCMAKE_ASM_COMPILER="$ZW/cc" \ + -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_PREFIX_PATH=/usr \ + -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=OFF -DBUILD_TESTING=OFF +''' +compile = "cmake --build build" +install = "DESTDIR=/out cmake --install build" + +[deps] +build = ["cmake", "samurai", "python3", "pkgconf", "qtbase", "dbus", "extra-cmake-modules", "qttools", + "gettext-tiny", "kcoreaddons", "ki18n"]