# Maintainer: Luca Weiss pkgname=dbus-cpp pkgver=5.0.1 pkgrel=0 _commit="967dc1caf0efe0a1286c308e8e8dd1bf7da5f3ee" pkgdesc="A header-only dbus-binding leveraging C++-11" url="https://code.launchpad.net/dbus-cpp" arch="x86_64" license="LGPL3" depends="dbus libxml2 boost properties-cpp" depends_dev="boost-dev" makedepends="$depends_dev cmake cmake-extras libxml2-dev properties-cpp-dev dbus-dev linux-headers process-cpp-dev gtest-dev gmock" install="" subpackages="$pkgname-dev" source="https://github.com/lib-cpp/dbus-cpp/archive/$_commit.tar.gz boost_io_context.patch" # https://github.com/lib-cpp/dbus-cpp/pull/2 builddir="$srcdir/$pkgname-$_commit" options="!check" # 53% tests passed, 7 tests failed out of 15 build() { mkdir "$builddir"/build cd "$builddir"/build cmake .. \ -DCMAKE_INSTALL_LIBDIR=/usr/lib \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release \ -DDBUS_CPP_VERSION_MAJOR=5 \ -DDBUS_CPP_VERSION_MINOR=0 \ -DDBUS_CPP_VERSION_PATCH=0 make } check() { cd "$builddir"/build make test } package() { cd "$builddir"/build make DESTDIR="$pkgdir" install } sha512sums="6db299307eb966600d488aa31db2814095c562c9c62a46b614ec1fa361f3c17900bbbe3da021629e6b7279ad99bf193393772302bfc8f6b5ea80ef3497fb7f46 967dc1caf0efe0a1286c308e8e8dd1bf7da5f3ee.tar.gz 55862c347f2aeabd00b3d547b34c7b3c5bbbb3f40a76cb2e20711c6168b4780db36436f631cf33f1b6ff48f3e6a83480db1df69cafa7e8a25e5f06df9ea53829 boost_io_context.patch"