kde/Plasma: konsole 25.04.3 + kpty 6.27 — la PRIMERA app (terminal) desde fuente
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.
This commit is contained in:
@@ -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"]
|
||||
@@ -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"]
|
||||
Reference in New Issue
Block a user