# libxkbcommon 1.7.0 — variante con X11 para Qt-xcb (provee libxkbcommon-x11.so que la QPA xcb
# de Qt exige). Override de recipes/libxkbcommon.toml para la campaña KDE (Capa 0, ADR 0011):
# aquí -Denable-x11=true ⇒ xkbcommon-x11 linkea libxcb. Resto igual (meson, bison, sin docs/
# wayland/xkbregistry/tools). En runtime usa los datos de xkeyboard-config (no dep de build).
name    = "libxkbcommon"
version = "1.7.0"

[source]
tarball = "https://github.com/xkbcommon/libxkbcommon/archive/refs/tags/xkbcommon-1.7.0.tar.gz"
sha256  = "20d5e40dabd927f7a7f4342bebb1e8c7a59241283c978b800ae3bf60394eabc4"

[build]
compiler    = "zig-cc"
target      = "x86_64-linux-musl"
link        = "dynamic"
zig_version = "0.13.0"

[build.phases]
configure = "meson setup output --prefix=/usr --buildtype=release -Denable-x11=true -Denable-docs=false -Denable-wayland=false -Denable-xkbregistry=false -Denable-tools=false"
compile   = "ninja -C output"
install   = "DESTDIR=/out ninja -C output install"

[deps]
build = ["meson", "samurai", "python3", "pkgconf", "bison", "libxcb", "libX11", "libXau", "libXdmcp", "xorgproto"]
