# xcb-proto 1.17.0 — descripciones XML del protocolo X + el módulo Python `xcbgen` que genera el código
# C de libxcb. Capa 0 de la campaña KDE (ADR 0011). No compila C: instala los .xml a /usr/share/xcb, el
# módulo xcbgen a site-packages y xcb-proto.pc. libxcb IMPORTA xcbgen en su fase de build (vía PYTHONPATH).
name    = "xcb-proto"
version = "1.17.0"

[source]
tarball = "https://xorg.freedesktop.org/releases/individual/proto/xcb-proto-1.17.0.tar.xz"
sha256  = "2c1bacd2110f4799f74de6ebb714b94cf6f80fb112316b1219480fd22562148c"

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

[build.phases]
# xcbgen se instala en /usr/lib/python3.12/site-packages (python3 del catálogo = 3.12).
configure = "./configure --prefix=/usr"
compile   = "make -j\"$(nproc)\""
install   = "make install DESTDIR=/out"

[deps]
build = ["pkgconf", "python3"]
