# Maintainer: Patrycja Rosa pkgname=lomiri-deviceinfo pkgver=0.2.0 pkgrel=0 pkgdesc="Library to detect and configure devices" url="https://gitlab.com/ubports/development/core/deviceinfo" arch="all" license="GPL-3.0-only" makedepends=" cmake cmake-extras gtest-dev samurai yaml-cpp-dev " subpackages="$pkgname-dev" source="https://gitlab.com/ubports/development/core/deviceinfo/-/archive/$pkgver/deviceinfo-$pkgver.tar.gz" builddir="$srcdir/deviceinfo-$pkgver" build() { cmake -B build -G Ninja \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_SHARED_LIBS=True \ -DCMAKE_BUILD_TYPE=none \ -DCONFIG_PATH=/etc/lomiri-deviceinfo cmake --build build } check() { cd build CTEST_OUTPUT_ON_FAILURE=TRUE ctest } package() { DESTDIR="$pkgdir" cmake --install build } sha512sums=" 4322ac34d819da9f64d512f8f9e753897d8d9b5240377e5c821b59b561d797cd82dc65e8366034e353a5f852294f5263ef7f95287344d7af75a0557a10e32845 deviceinfo-0.2.0.tar.gz "