# Maintainer: Natanael Copa pkgname=dbus pkgver=1.8.8 pkgrel=0 pkgdesc="Freedesktop.org message bus system" url="http://www.freedesktop.org/Software/dbus" pkggroups="messagebus" arch="all" license="GPL custom" subpackages="$pkgname-dev $pkgname-doc $pkgname-libs $pkgname-x11" triggers="$pkgname.trigger=/etc/dbus-1/system.d" depends= makedepends="expat-dev libx11-dev pkgconfig util-linux-dev" depends_dev="util-linux-dev" install="$pkgname.pre-install $pkgname.post-install" source="http://dbus.freedesktop.org/releases/dbus/dbus-$pkgver.tar.gz $pkgname.initd " 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 \ --with-x \ || return 1 make || return 1 } package() { cd "$srcdir"/$pkgname-$pkgver make -j1 DESTDIR="$pkgdir" install || return 1 rm "$pkgdir"/usr/lib/*.la || return 1 install -Dm755 "$srcdir"/dbus.initd "$pkgdir"/etc/init.d/dbus } libs() { pkgdesc="Libraries for acces D-BUS" replaces="dbus" mkdir -p "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/lib*.so.* "$subpkgdir"/usr/lib/ } x11() { pkgdesc="X11-requiring add-ons for D-BUS" depends="dbus=$pkgver-r$pkgrel" mkdir -p "$subpkgdir"/usr/bin mv "$pkgdir"/usr/bin/dbus-launch "$subpkgdir"/usr/bin/ } md5sums="b9f4a18ee3faa1e07c04aa1d83239c43 dbus-1.8.8.tar.gz bc835765907698a95da8d8e5bf199378 dbus.initd" sha256sums="dfab263649a979d0fff64a30cac374891a8e9940350e41f3bbd7679af32bd1fd dbus-1.8.8.tar.gz 98e37b8b6ed25004e48c5855d74c9361eea06d3fee13cefcc0ed10ccf452aa01 dbus.initd" sha512sums="99e7e05347666e95f3ccaf3f19500b59a5e509cdb9489c11f47ed4f139d3bc8e21adcf48cbb5c4f0de1661e831d60634eb7b6b76cc080d32091b63c732ebe391 dbus-1.8.8.tar.gz 7983e77015b46c204b10948a1fcedaae53a75848919961eb1ef8878bfa11c933256642c0e3f59163e72374ce1bd33b0338c787ce067c0982fcdf8a798b922a15 dbus.initd"