maintainer="Hugo Osvaldo Barrera <hugo@whynothugo.nl>"
pkgname=dbus-broker
pkgver=36
pkgrel=0
pkgdesc="Linux D-Bus Message Broker"
url="https://github.com/bus1/dbus-broker"
arch="all"
license="Apache-2.0"
makedepends="meson linux-headers py3-docutils"
subpackages="$pkgname-doc"
source="https://github.com/bus1/dbus-broker/releases/download/v$pkgver/dbus-broker-$pkgver.tar.xz
	gcc14.patch
	"

build() {
	# launcher: requires systemd
	abuild-meson . build -Dlauncher=false -Ddocs=true
	meson compile -C build
}

check() {
	meson test --print-errorlogs -C build
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C build
}

sha512sums="
47ff345e27ae2ba41f43a4a6eb09b813583ef43392d1dfa2fc1805578c0ed3a1e414c3eae63f78ca3806904dc017a138e283aa32ba973de51ed613050b244a0f  dbus-broker-36.tar.xz
4038a5d6aba3d22c9dca05dbf1021e7abe0edec4f112050b4645ea6a7e1f2ca045403fab59f5558329d8f0fbecbac224d8cc38d88351dc6169352d572a041559  gcc14.patch
"
