# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Luca Weiss <luca@z3ntu.xyz>
pkgname=dbus-test-runner
pkgver=15.04.0_git20180109
_commit="86d63d119566974bd841cacd3202599b3b1a845d"
pkgrel=1
pkgdesc="A small little utility to run a couple of executables under a new DBus session for testing"
url="https://launchpad.net/dbus-test-runner"
arch="x86_64"
license=GPL-3.0
depends="dbus"
makedepends="gnome-common automake autoconf intltool libtool dbus-glib-dev"
source="$pkgname-$_commit.tar.gz::https://github.com/ubports/dbus-test-runner/archive/$_commit.tar.gz
	werror.patch"
options="!check"
builddir="$srcdir/$pkgname-$_commit"

build() {
	export CFLAGS="${CFLAGS:-} -Wno-error=deprecated -Wno-error=deprecated-declarations"
	./autogen.sh \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--libexecdir=/usr/lib
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir/" install
}
sha512sums="89189a6df11a69e7ace97805fe6238515838731fabf00972f0e607612fbd057c5178b5899a93420b89943f39962d2cf8c87d36d439fb06d1c4cd70518cb623ae  dbus-test-runner-86d63d119566974bd841cacd3202599b3b1a845d.tar.gz
89c0ae015b8b691a3874b84faafff17c1a9c371afe9d076aac73ef50eaf91d9f02b87916537deb18f37bf25d1be752a0aca288ad6e0ebb997577b708b4c4c716  werror.patch"
