# dbus 1.16.2 — libdbus-1 (IPC de escritorio). Campaña KDE (ADR 0011), saldo de deuda Capa 0: KF6
# entero exige Qt6DBus, que qtbase sólo expone si se construye con dbus=ON linkeando libdbus. Variante
# incoming-kde de-Alpinizada MINIMAL: meson, link dinámico (libdbus-1.so), SOLO expat (sin glib —
# modular_tests/systemd/x11 disabled evitan el glib que hacía fallar al recipe canónico en la granja).
# tools=false: sólo la lib para construir Qt6DBus; el dbus-daemon (runtime de la sesión) se añade luego.
name    = "dbus"
version = "1.16.2"
license = "AFL-2.1 OR GPL-2.0-or-later"

[source]
tarball = "https://dbus.freedesktop.org/releases/dbus/dbus-1.16.2.tar.xz"
sha256  = "0ba2a1a4b16afe7bceb2c07e9ce99a8c2c3508e5dec290dbb643384bd6beb7e2"

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

[build.phases]
configure = '''
PKG_CONFIG_PATH=/usr/lib/pkgconfig PYTHONPATH=/usr/lib/python3.12/site-packages meson setup build \
  --prefix=/usr --buildtype=release --wrap-mode=nodownload \
  -Ddefault_library=shared \
  -Dsystemd=disabled -Dx11_autolaunch=disabled -Dmodular_tests=disabled \
  -Ddoxygen_docs=disabled -Dxml_docs=disabled -Dducktype_docs=disabled \
  -Dtools=false -Dasserts=false -Dsession_socket_dir=/run/dbus
'''
compile = "PYTHONPATH=/usr/lib/python3.12/site-packages ninja -C build"
install = "DESTDIR=/out ninja -C build install"

[deps]
build = ["meson", "samurai", "pkgconf", "python3", "expat"]
