Luca Weiss ecd012a851 */*: switch Lomiri packages away from cmake3.5
Most packages have had releases that have cmake_minimum_required() for
3.5 or newer. Add one patch from upstream lomiri-trust-store to fix that
one. Geonames is handled separately with the 0.3.2 upgrade.
2026-03-25 11:51:07 +00:00

40 lines
1.1 KiB
Plaintext

# Maintainer: Luca Weiss <luca@lucaweiss.eu>
pkgname=dbus-cpp
pkgver=5.0.6
pkgrel=1
pkgdesc="A header-only dbus-binding leveraging C++-11"
url="https://gitlab.com/ubports/core/lib-cpp/dbus-cpp"
arch="all"
license="LGPL-3.0-only"
depends_dev="boost-dev properties-cpp-dev"
makedepends="$depends_dev cmake cmake-extras dbus-dev libxml2-dev process-cpp-dev gtest-dev samurai"
checkdepends="dbus coreutils"
subpackages="$pkgname-dev"
source="https://gitlab.com/ubports/core/lib-cpp/dbus-cpp/-/archive/$pkgver/dbus-cpp-$pkgver.tar.gz"
options="!check" # Tests are too unreliable to not fail randomly
build() {
if [ "$CBUILD" != "$CHOST" ]; then
local 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=ON \
-DCMAKE_BUILD_TYPE=None \
$crossopts
cmake --build build
}
check() {
ctest --test-dir build
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
sha512sums="
fa0c766c643fe4b10d0015c375ac9b0eb9897dd6edbbb5011d351951b9b432c9f380579b91162846682e643a66710bb9c33cd1e69b4aa95f50156d41e0ddc4ee dbus-cpp-5.0.6.tar.gz
"