# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=hfd-service pkgver=0.2.0 pkgrel=1 pkgdesc="Service that manages human feedback devices on mobile devices" url="https://gitlab.com/ubports/development/core/hfd-service" arch="all" license="LGPL-3.0-only" makedepends=" cmake-extras lomiri-deviceinfo-dev eudev-dev qt5-qtbase-dev qt5-qtfeedback-dev samurai " subpackages="$pkgname-openrc" source="https://gitlab.com/ubports/development/core/hfd-service/-/archive/$pkgver/hfd-service-$pkgver.tar.gz hfd-service.initd " options="!check" # No tests build() { cmake -B build -G Ninja \ -DCMAKE_BUILD_TYPE=None \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DENABLE_LIBHYBRIS=OFF cmake --build build } package() { DESTDIR="$pkgdir" cmake --install build install -Dm755 "$srcdir"/hfd-service.initd "$pkgdir"/etc/init.d/hfd-service mkdir -p "$pkgdir"/usr/share/dbus-1/system.d/ mv "$pkgdir"/etc/dbus-1/system.d/* "$pkgdir"/usr/share/dbus-1/system.d/ } sha512sums=" e7110dbc0bd08283c85e9c680f857e9f6de8dbeb71934d2da9eaf10017af971948cbafdf9908274b049c62e3bba7be4c6e0c25788fc6e93ddca1b37cd87b920e hfd-service-0.2.0.tar.gz f82f84a3d0422845d96fa98a74d4614f3097b1e27ff9abaf2b673d9dc802fbca5f077862a055241cc9cb3d9cd161608853069730fb53eff70cb596ebfeeb9a9e hfd-service.initd "