sergio/takana
> Una distribución Linux construida con un laboratorio funcional y hermético en el > sótano, y una terminal mutable, clásica y anárquica en el piso de arriba — diseñada > desde el suelo para que una IA programadora entienda, modifique y co…
kde/Plasma: recetas layer-shell-qt + kscreenlocker + plasma5support (hacia plasmashell)
1# layer-shell-qt 6.7.2 — integración wlr-layer-shell para Qt/QML. plasmashell la usa para dibujar
2# paneles/fondos como capas del compositor Wayland. Campaña KDE (ADR 0011), Capa Plasma (hacia plasmashell).
3# Patrón KF6 (dynamic, wrapper zig que filtra -Wl,--fatal-warnings, CMAKE_PREFIX_PATH=/usr) + Ninja.
4#
5# find_package REQUIRED del CMakeLists (raíz + src/, src/declarative/): TODOS cubiertos por el catálogo:
6# ECM · Qt6 WaylandClient (qtwayland) + Qml (qtdeclarative) · Qt6WaylandClientPrivate (qtwayland, Qt>=6.10)
7# WaylandScanner + Wayland Client/Server (wayland) · WaylandProtocols (wayland-protocols) · xkbcommon (libxkbcommon)
8# No usa ki18n (sin gettext). Sin bloqueadores.
9name = "layer-shell-qt"
10version = "6.7.2"
11
12[source]
13tarball = "https://download.kde.org/stable/plasma/6.7.2/layer-shell-qt-6.7.2.tar.xz"
14sha256 = "392cd82742f109452f874d14f5d391a823c7b021bdc2446c0f474b3d1e77b129"
15
16[build]
17compiler = "zig-cc"
18target = "x86_64-linux-musl"
19link = "dynamic"
20flags = []
21
22[build.phases]
23configure = '''
24ZW="$PWD/.zwrap"; mkdir -p "$ZW"
25cat > "$ZW/cc" <<'W'
26#!/bin/sh
27a=""; for x in "$@"; do [ "$x" = "-Wl,--fatal-warnings" ] && continue; a="$a $x"; done
28exec /opt/zig/zig cc -mcpu=baseline $a
29W
30cat > "$ZW/cxx" <<'W'
31#!/bin/sh
32a=""; for x in "$@"; do [ "$x" = "-Wl,--fatal-warnings" ] && continue; a="$a $x"; done
33exec /opt/zig/zig c++ -mcpu=baseline $a
34W
35chmod +x "$ZW/cc" "$ZW/cxx"
36PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/share/pkgconfig \
37cmake -B build -G Ninja -Wno-dev \
38 -DCMAKE_C_COMPILER="$ZW/cc" -DCMAKE_CXX_COMPILER="$ZW/cxx" -DCMAKE_ASM_COMPILER="$ZW/cc" \
39 -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_PREFIX_PATH=/usr \
40 -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=OFF \
41 -DBUILD_TESTING=OFF -DBUILD_PYTHON_BINDINGS=OFF
42'''
43compile = "cmake --build build"
44install = "DESTDIR=/out cmake --install build"
45
46[deps]
47build = ["cmake", "samurai", "python3", "pkgconf", "qtbase", "qtdeclarative", "qtwayland",
48 "dbus", "extra-cmake-modules", "qttools",
49 "wayland", "wayland-protocols", "libxkbcommon",
50 "mesa", "libdrm"]