# Contributor: Antoine Fontaine # Maintainer: pkgname=sdbus-cpp pkgver=1.2.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=" dab2c4d9a5ea6d626672a5a6ee6f3490c60c6fdd160769801a4d6b4cf3df4983fad57ff0230132a5d637ec78a55993200ce217fa89461016e101865cc2777d7d sdbus-cpp-1.2.0.tar.gz "