# xcb-util 0.4.1 — utilidades base de XCB (libxcb-util.so: xcb_aux, xcb_event, xcb_atom). Capa 0 de la
# campaña KDE (ADR 0011): base de la familia xcb-util (keysyms/wm/image la usan vía los m4 comunes).
# Autotools; consume libxcb + xorgproto. Linking dinámico.
name    = "xcb-util"
version = "0.4.1"

[source]
tarball = "https://xorg.freedesktop.org/releases/individual/lib/xcb-util-0.4.1.tar.xz"
sha256  = "5abe3bbbd8e54f0fa3ec945291b7e8fa8cfd3cccc43718f8758430f94126e512"

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

[build.phases]
configure = '''
PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/share/pkgconfig \
./configure --prefix=/usr --disable-static --enable-shared
'''
compile   = "make -j\"$(nproc)\""
install   = "make install DESTDIR=/out && find /out -name '*.la' -delete"

[deps]
build = ["pkgconf", "python3", "util-macros", "xorgproto", "xcb-proto", "libxcb", "libXau", "libXdmcp"]
