# Maintainer: Natanael Copa pkgname=dbus pkgver=1.12.16 pkgrel=0 pkgdesc="Freedesktop.org message bus system" url="https://www.freedesktop.org/Software/dbus" pkggroups="messagebus" arch="all" options="!check" # Requires running X11 server. license="AFL-2.1 OR GPL-2.0-or-later" subpackages="$pkgname-dev $pkgname-doc $pkgname-libs $pkgname-x11 $pkgname-openrc" triggers="$pkgname.trigger=/etc/dbus-1/system.d" depends_dev="util-linux-dev" makedepends="$depends_dev expat-dev libx11-dev autoconf automake libtool xmlto libsm-dev" install="$pkgname.pre-install $pkgname.post-install" source="https://dbus.freedesktop.org/releases/dbus/dbus-$pkgver.tar.gz $pkgname.initd " # secfixes: # 1.12.16-r0: # - CVE-2019-12749 build() { cd "$srcdir"/$pkgname-$pkgver ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --with-xml=expat \ --with-dbus-user=messagebus \ --with-system-pid-file=/var/run/dbus.pid \ --disable-verbose-mode \ --disable-static \ --enable-inotify \ --disable-dnotify \ --disable-tests \ --disable-asserts \ --enable-user-session \ --enable-xml-docs \ --with-session-socket-dir=/tmp \ --with-x make } package() { cd "$srcdir"/$pkgname-$pkgver make -j1 DESTDIR="$pkgdir" install install -Dm755 "$srcdir"/dbus.initd "$pkgdir"/etc/init.d/dbus rm -rf "$pkgdir"/usr/lib/systemd } libs() { pkgdesc="D-BUS access libraries" replaces="dbus" mkdir -p "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/lib*.so.* "$subpkgdir"/usr/lib/ } x11() { pkgdesc="X11 add-ons for D-BUS" depends="dbus=$pkgver-r$pkgrel" mkdir -p "$subpkgdir"/usr/bin mv "$pkgdir"/usr/bin/dbus-launch "$subpkgdir"/usr/bin/ } sha512sums="27ae805170e9515a8bb0fba5f29d414edc70e3b6b28b7b65bbea47035b8eafa9ac4820cdc92645be6035f6748f8aa45679e1ffc84ba74a64859a3056d318b9bb dbus-1.12.16.tar.gz f3d924e0f0fdced39f0470fac362834acf9f346acdfadbcdf44f627a1b550a69d1d04b3760ff06dc86a7335824f48d3c1faa09a17071e08731705a5fb016a155 dbus.initd"