# Contributor: Antoine Fontaine # Maintainer: Krassy Boykinov pkgname=sdbus-cpp pkgver=1.4.0 pkgrel=0 pkgdesc="unofficial, high-level C++ dbus bindings" url="https://github.com/Kistler-Group/sdbus-cpp/" arch="all" license="LGPL-2.1-or-later" makedepends="cmake elogind-dev expat-dev gtest-dev samurai" subpackages="$pkgname-dev $pkgname-doc" source="sdbus-cpp-$pkgver.tar.gz::https://github.com/Kistler-Group/sdbus-cpp/archive/v$pkgver.tar.gz" build() { if [ "$CBUILD" != "$CHOST" ]; then CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" fi cmake -B build -G Ninja \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_SHARED_LIBS=True \ -DCMAKE_BUILD_TYPE=None \ -DBUILD_CODE_GEN=True \ $CMAKE_CROSSOPTS . cmake --build build } package() { DESTDIR="$pkgdir" cmake --install build } dev() { default_dev # the code generator is a development tool amove usr/bin/sdbus-c++-xml2cpp } sha512sums=" 8b13dc57f15de482f59edfff7cdd4e2b4e2e659b9cdff9f946783bb0bf1ec735f789675dd19ebe7d38a06358fe77dcfabdc2a387660af00f2c0f3962de214d76 sdbus-cpp-1.4.0.tar.gz "