# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=dbus-glib
pkgver=0.110
pkgrel=0
pkgdesc="GLib bindings for D-Bus"
url="https://www.freedesktop.org/wiki/Software/DBusBindings"
arch="all"
options="!checkroot"
license="AFL-2.1 OR GPL-2.0+"
subpackages="$pkgname-dev $pkgname-doc"
depends=
makedepends="dbus-dev expat-dev glib-dev"
checkdepends="dbus"
source="http://dbus.freedesktop.org/releases/$pkgname/$pkgname-$pkgver.tar.gz"

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--enable-static=no \
		--enable-bash-completion=no
	make
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="c40ccf7118d4951f0e09082216ccd26f21ee906bdf96d912611d3cd29badd7ef446bea74e19f26c28ebceb9e19bb659d11c643c3e712dac499df12907be88a54  dbus-glib-0.110.tar.gz"