mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 19:55:26 +03:00
39 lines
1.1 KiB
Text
39 lines
1.1 KiB
Text
# Maintainer: Luca Weiss <luca@lucaweiss.eu>
|
|
pkgname=dbus-cpp
|
|
pkgver=5.0.4
|
|
pkgrel=0
|
|
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="
|
|
f598d8e7f767f6455a8e308405a3b7d67b80533344e217dc6564ed8dd35c810797ff07e7e9d0b9e2a1f984f3bfaecb26e049607a2ddb1e0fbfe75d96603ff293 dbus-cpp-5.0.4.tar.gz
|
|
"
|