#!/usr/bin/bash
# JOBoRun		: Jwm OpenBox Obarun RUNit
# Maintainer	: Joe Bo Run <joborun@disroot.org>
# PkgSource		: url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Website		: https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------

pkgname=dbus-broker
pkgver=33
pkgrel=01
pkgdesc="Linux D-Bus Message Broker w/o systemd"
url="https://github.com/bus1/dbus-broker/wiki"
depends=(expat audit)
makedepends=(meson python-docutils)
#options=(debug) ###   uncomment this line to have debug pkg produced
source=(https://github.com/bus1/dbus-broker/releases/download/v$pkgver/$pkgname-$pkgver.tar.xz{,.asc})

prepare() {
  cd $pkgname-$pkgver
}

build() {
  arch-meson $pkgname-$pkgver build \
    -D audit=true \
    -D docs=true \
    -D linux-4-17=true \
    -D launcher=false \
    -D system-console-users=gdm,sddm,lightdm,lxdm
  meson compile -C build
}

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

package() {
  meson install -C build --destdir "$pkgdir"
}

#---- arch license gpg-key & sha256sums ----

arch=(x86_64)

validpgpkeys=(BE5FBC8C9C1C9F60A4F0AEAE7A4F3A09EBDEFF26) # David Herrmann <dh.herrmann@gmail.com>

license=(Apache)

sha256sums=(23713f25624749fdb274907e429080fa2d8f4dbe76acd87bb6d21a3c818c7841  # dbus-broker-33.tar.xz
	3bce4084d7b683c20f804a0f6d590fe063e055c0dd57fa6e7b3f7251762b74c2) # dbus-broker-33.tar.xz.asc

##  03b5a5b7b697d5fe9de1e9fb31a6731ce38a750f3f00e775b82f55785dee2ebd  dbus-broker-33-01-x86_64.pkg.tar.lz

