# Contributor: Rasmus Thomsen # Maintainer: Rasmus Thomsen pkgname=feedbackd pkgver=0.2.0 pkgrel=0 pkgdesc="Daemon to provide haptic, LED, and audio feedback triggered by application events" url="https://source.puri.sm/Librem5/feedbackd" arch="all" license="GPL-3.0-or-later" depends="dbus feedbackd-device-themes" makedepends=" gi-docgen glib-dev gobject-introspection-dev gsound-dev gtk-doc json-glib-dev libgudev-dev meson vala " subpackages="$pkgname-dev $pkgname-doc" source="https://storage.puri.sm/releases/feedbackd/feedbackd-$pkgver.tar.xz" install="$pkgname.pre-install $pkgname.pre-upgrade" build() { abuild-meson \ -Db_lto=true \ -Dgtk_doc=true \ . output meson compile ${JOBS:+-j ${JOBS}} -C output } check() { meson test --no-rebuild --print-errorlogs -C output } package() { DESTDIR="$pkgdir" meson install --no-rebuild -C output install -Dm644 "$builddir"/debian/feedbackd.udev \ "$pkgdir"/usr/lib/udev/rules.d/90-feedbackd.rules } sha512sums=" fd80c680edc944cd74e336c79128dda8b804e460c38e1a6652446481d34d9ea32fc662701fafe94ea6b8e106b13b55d5e04854b6e1d9bed598d1abfd83957709 feedbackd-0.2.0.tar.xz "