# xcb-util-wm 0.4.2 — utilidades xcb para window managers: ICCCM (xcb-icccm.pc) + EWMH (xcb-ewmh.pc).
# Capa 0 campaña KDE (ADR 0011): kwindowsystem pide el componente XCB ICCCM. Autotools sobre libxcb.
name    = "xcb-util-wm"
version = "0.4.2"
license = "MIT"

[source]
tarball = "https://xorg.freedesktop.org/releases/individual/lib/xcb-util-wm-0.4.2.tar.xz"
sha256  = "62c34e21d06264687faea7edbf63632c9f04d55e72114aa4a57bb95e4f888a0b"

[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"

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