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…
licencias: campo `license` en la receta — de 0 a 228 de 1141, sin re-hashear nada
1# kcoreaddons 6.27.0 — framework KF6 tier-1 más fundamental (KAboutData, KFormat, KJob, KProcess…).
2# Solo Qt6Core + ECM; base de casi todo KF6. Campaña KDE (ADR 0011), Capa 2. Patrón KF6 = patrón módulo
3# Qt (dynamic, wrappers zig, CMAKE_PREFIX_PATH=/usr) + dep extra-cmake-modules. QML bindings / python /
4# docs apagados. Core-only ⇒ sin el set Gui (mesa/xkb/wayland).
5name = "kcoreaddons"
6version = "6.27.0"
7license = "LGPL-2.1-or-later OR LGPL-3.0-or-later"
8
9[source]
10tarball = "https://download.kde.org/stable/frameworks/6.27/kcoreaddons-6.27.0.tar.xz"
11sha256 = "ad0d0147968dabdcf011425cf7764e71a0d0cfdc30e9e34b561ea5ba9a768001"
12
13[build]
14compiler = "zig-cc"
15target = "x86_64-linux-musl"
16link = "dynamic"
17flags = []
18
19[build.phases]
20configure = '''
21# Wrapper zig que FILTRA -Wl,--fatal-warnings: ECM (KDECompilerSettings) lo agrega y el linker de zig
22# lo rechaza ("unsupported linker arg"). Patrón KF6 (todos los frameworks usan ECM).
23ZW="$PWD/.zwrap"; mkdir -p "$ZW"
24cat > "$ZW/cc" <<'W'
25#!/bin/sh
26a=""; for x in "$@"; do [ "$x" = "-Wl,--fatal-warnings" ] && continue; a="$a $x"; done
27exec /opt/zig/zig cc -mcpu=baseline $a
28W
29cat > "$ZW/cxx" <<'W'
30#!/bin/sh
31a=""; for x in "$@"; do [ "$x" = "-Wl,--fatal-warnings" ] && continue; a="$a $x"; done
32exec /opt/zig/zig c++ -mcpu=baseline $a
33W
34chmod +x "$ZW/cc" "$ZW/cxx"
35cmake -B build -G Ninja -Wno-dev \
36 -DCMAKE_C_COMPILER="$ZW/cc" -DCMAKE_CXX_COMPILER="$ZW/cxx" -DCMAKE_ASM_COMPILER="$ZW/cc" \
37 -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_PREFIX_PATH=/usr \
38 -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=OFF \
39 -DBUILD_TESTING=OFF -DBUILD_PYTHON_BINDINGS=OFF -DBUILD_DESIGNERPLUGIN=OFF \
40 -DKCOREADDONS_USE_QML=OFF
41'''
42compile = "cmake --build build"
43install = "DESTDIR=/out cmake --install build"
44
45[deps]
46build = ["cmake", "samurai", "python3", "pkgconf", "qtbase", "dbus", "extra-cmake-modules", "util-linux", "qttools", "qtdeclarative", "mesa", "libdrm", "libxkbcommon", "wayland"]