# libXi 1.8.2 — cliente de la extensión X Input (XInput2) (xi.pc).
# Capa 0 campaña KDE (ADR 0011): eslabón de la cadena Qt-xcb (QT_FEATURE_xcb=ON); la QPA xcb de
# Qt usa XInput2 para eventos de teclado/ratón/tablet. Requiere libXext. Autotools sobre libX11.
name    = "libXi"
version = "1.8.2"
license = "MIT"

[source]
tarball = "https://xorg.freedesktop.org/releases/individual/lib/libXi-1.8.2.tar.xz"
sha256  = "d0e0555e53d6e2114eabfa44226ba162d2708501a25e18d99cfb35c094c6c104"

[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", "libX11", "libXext", "libxcb", "libXau", "libXdmcp", "libXfixes"]
