# breeze 6.7.2 — tema por defecto de KDE Plasma: QStyle de widgets (KStyle←frameworkintegration), decoración
# de ventanas (plugin kdecoration), tema Plasma, tema de cursores. Sin él el escritorio se ve roto. Patrón KF6
# (dynamic, wrapper zig). Wayland-puro: sin dep X11-session pesada. -DWITH_WALLPAPERS=OFF (opcional, pesado).
name    = "breeze"
version = "6.7.2"
[source]
tarball = "https://download.kde.org/stable/plasma/6.7.2/breeze-6.7.2.tar.xz"
sha256  = "80818bf6382a96e1a45c755f983d98357c4f7163f80cb8217897df15f8a02785"
[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 -DBUILD_PYTHON_BINDINGS=OFF \
  -DBUILD_QT5=OFF -DBUILD_QT6=ON
'''
compile = "cmake --build build"
install = "DESTDIR=/out cmake --install build"
[deps]
build = ["cmake", "samurai", "python3", "pkgconf", "qtbase", "qtdeclarative", "qtsvg", "extra-cmake-modules",
  "gettext-tiny", "dbus",
  "frameworkintegration", "kdecoration", "libplasma", "kirigami",
  "kcmutils", "kconfig", "kconfigwidgets", "kcoreaddons", "kguiaddons", "ki18n", "kiconthemes",
  "kwindowsystem", "kcolorscheme", "kwidgetsaddons", "kcodecs", "kcompletion", "kitemviews",
  "kservice", "kio", "kpackage", "kdeclarative", "knotifications", "kjobwidgets", "kbookmarks",
  "solid", "sonnet", "attica", "karchive", "kdbusaddons", "kcrash", "kdnssd", "kwallet", "kxmlgui",
  "kparts", "knewstuff", "kglobalaccel", "kwayland", "plasma-activities",
  "libgcrypt", "libgpg-error", "openssl", "util-linux", "zlib", "zstd",
  "libX11", "xorgproto", "libXau", "libXdmcp", "libxcb", "libxkbcommon", "wayland",
  "mesa", "libdrm", "fontconfig", "freetype"]
