mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-06 01:02:26 +01:00
41 lines
1.1 KiB
Plaintext
41 lines
1.1 KiB
Plaintext
# Contributor: Antoine Fontaine <antoine.fontaine@epfl.ch>
|
|
# Maintainer: Krassy Boykinov <kboykinov@teamcentrixx.com>
|
|
pkgname=sdbus-cpp
|
|
pkgver=1.6.0
|
|
pkgrel=1
|
|
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="
|
|
6bc16cab849820ad09a51a3d3dadf1ba30507cb71fab3da75fcca1c476e9b5b03f9c6ff2e24521bd66a81d060ceca99a7d81adcb4112b2b105ddb470c5ef16bc sdbus-cpp-1.6.0.tar.gz
|
|
"
|