mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 03:35:38 +03:00
The cargo vars are now set in abuild.conf by default. Newlines done with: find . -name APKBUILD -exec sed -i '/^$/N;/^\n$/D' {} \; See also: https://stackoverflow.com/a/4522043
40 lines
1.1 KiB
Text
40 lines
1.1 KiB
Text
# Contributor: Antoine Fontaine <antoine.fontaine@epfl.ch>
|
|
# 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
|
|
"
|