dev-libs/feedbackd: add package for phosh

Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Marco Scardovi <marco@scardovi.com>
This commit is contained in:
Marco Scardovi
2021-06-22 15:56:25 +02:00
parent e86753a924
commit 4e42bb38c4
6 changed files with 444 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
DIST b45468080eee851da500613ecedd709639b6d769.tar.gz 80860 BLAKE2B a80829b496e314fd04f17024a3e5415e02852b217df5f9bcbca6159b4bded5220cd6cc9d39a66c24de500bbe91c111ca1e4d05669b53decc07ca0adb91b851da SHA512 7e869c127059d2f070d368ca894808f2fb78fd04048662dabd303a45d86a3b53bf3646f64e088cd720c6f54777a86673156d3cf782fdd663dc25fae65bd04e6e
DIST feedbackd-device-themes-1602d415aed30b1a67c0ff270551230725b8ef92.tar.gz 13832 BLAKE2B 87c1ccd52dec982e4e1651e11598b60daa8380f2de4c371e0abc70e2840abd1e62fa9fd70cbe8a5860942c282cac54ea11b548066cd01be5b49ba939b488ec3a SHA512 0e6ece5deddc3df3824aa01b6bbc2ad7fc9ab96db6afe9e4aa84652a005eb860c5552e52aeb17329dde84e8d2bccc33c7e603ab04eb2ca41ed19bbe331ce6933

View File

@@ -0,0 +1,57 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
VALA_USE_DEPEND="vapigen"
inherit vala meson udev
IUSE="+introspection +vala"
REQUIRED_USE="vala? ( introspection )"
MY_PV="${PV}+git20210426"
MY_P="${PN}-${MY_PV}"
MY_COMMIT="b45468080eee851da500613ecedd709639b6d769"
MY_THEME_COMMIT="1602d415aed30b1a67c0ff270551230725b8ef92"
DESCRIPTION="A daemon to provide haptic feedback on events"
HOMEPAGE="https://source.puri.sm/Librem5/feedbackd"
SRC_URI="
https://source.puri.sm/Librem5/feedbackd/-/archive/${MY_COMMIT}/${MY_COMMIT}.tar.gz
https://source.puri.sm/Librem5/feedbackd-device-themes/-/archive/${MY_THEME_COMMIT}/feedbackd-device-themes-${MY_THEME_COMMIT}.tar.gz
"
S="${WORKDIR}/${PN}-${MY_COMMIT}"
LICENSE="LGPL-3"
KEYWORDS="~amd64 ~arm64"
SLOT="0"
DEPEND="
gnome-base/dconf
media-libs/gsound
dev-libs/json-glib
dev-libs/libgudev
"
RDEPEND="${DEPEND}"
BDEPEND="
dev-libs/gobject-introspection
dev-util/meson
virtual/pkgconfig
vala? ( $(vala_depend) )
"
src_prepare() {
default
eapply_user
use vala && vala_src_prepare
sed -i 's/-G feedbackd/-G video/g' "${S}"/debian/feedbackd.udev || die
}
src_install() {
default
meson_src_install
insinto /usr/share/feedbackd/themes
doins "${WORKDIR}"/feedbackd-device-themes-"${MY_THEME_COMMIT}"/data/"{pine64.pinephone,purism.librem5}.json"
udev_newrules "${S}"/debian/feedbackd.udev 90-feedbackd.rules
}

View File

@@ -0,0 +1,25 @@
From b0ef14bb5f73e0a1f5345f0ddd3b3992205daebf Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Philip=20M=C3=BCller?= <philm@manjaro.org>
Date: Tue, 4 May 2021 08:53:30 +0000
Subject: [PATCH] fbd-feedback-manager: fix device-specific themes path
---
src/fbd-feedback-manager.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/fbd-feedback-manager.c b/src/fbd-feedback-manager.c
index 39c27eb..ac6cdfa 100644
--- a/src/fbd-feedback-manager.c
+++ b/src/fbd-feedback-manager.c
@@ -455,7 +455,7 @@ find_themefile (void)
for (i = 0; i < g_strv_length (xdg_data_dirs); i++) {
g_autofree gchar *config_path = NULL;
- config_path = g_strconcat (xdg_data_dirs[i], "feedbackd/themes/", comp, ".json", NULL);
+ config_path = g_strconcat (xdg_data_dirs[i], "/feedbackd/themes/", comp, ".json", NULL);
g_debug ("Searching for device specific themefile in %s", config_path);
// Check if file exist
--
GitLab

View File

@@ -0,0 +1,175 @@
{
"name" : "default",
"profiles" : [
{
"name" : "full",
"feedbacks" : [
{
"event-name" : "alarm-clock-elapsed",
"type" : "Sound",
"effect" : "alarm-clock-elapsed"
},
{
"event-name" : "button-pressed",
"type" : "Sound",
"effect" : "button-pressed"
},
{
"event-name" : "button-released",
"type" : "Sound",
"effect" : "button-released"
},
{
"event-name" : "message-new-email",
"type" : "Sound",
"effect" : "message-new-email"
},
{
"event-name" : "message-new-instant",
"type" : "Sound",
"effect" : "message-new-instant"
},
{
"event-name" : "message-new-sms",
"type" : "Sound",
"effect" : "message-new-instant"
},
{
"event-name" : "phone-incoming-call",
"type" : "Sound",
"effect" : "phone-incoming-call"
},
{
"event-name" : "timeout-completed",
"type" : "Sound",
"effect" : "complete"
},
{
"event-name" : "theme-demo",
"type" : "Sound",
"effect" : "theme-demo"
},
{
"event-name" : "window-close",
"type" : "Sound",
"effect" : "theme-demo"
}
]
},
{
"name" : "quiet",
"feedbacks" : [
{
"event-name" : "alarm-clock-elapsed",
"type" : "VibraPeriodic",
"magnitude" : 32767,
"duration" : 10000,
"fade-in-time" : 10000,
"fade-in-level": 4096
},
{
"event-name" : "bell-terminal",
"type" : "VibraRumble",
"duration" : 100
},
{
"event-name" : "button-pressed",
"type" : "VibraRumble",
"duration" : 80
},
{
"event-name" : "button-released",
"type" : "VibraRumble",
"duration" : 40
},
{
"event-name" : "message-new-email",
"type" : "VibraRumble",
"duration" : 750,
"count" : 3,
"pause" : 100
},
{
"event-name" : "message-new-instant",
"type" : "VibraRumble",
"duration" : 750
},
{
"event-name" : "message-new-sms",
"type" : "VibraRumble",
"duration" : 1250,
"count" : 2,
"pause" : 250
},
{
"event-name" : "message-sent-instant",
"type" : "VibraRumble",
"duration" : 250
},
{
"event-name" : "phone-incoming-call",
"type" : "VibraPeriodic",
"duration" : 10000
},
{
"event-name" : "timeout-completed",
"type" : "VibraRumble",
"duration" : 500
},
{
"event-name" : "theme-demo",
"type" : "VibraPeriodic",
"magnitude" : 32767,
"duration" : 5000
},
{
"event-name" : "window-close",
"type" : "VibraRumble",
"duration" : 75
}
]
},
{
"name" : "silent",
"feedbacks" : [
{
"event-name" : "battery-caution",
"type" : "Led",
"color" : "red",
"frequency" : 5000
},
{
"event-name" : "phone-missed-call",
"type" : "Led",
"color" : "blue",
"frequency" : 3000
},
{
"event-name" : "message-missed-email",
"type" : "Led",
"color" : "blue",
"frequency" : 2000
},
{
"event-name" : "message-missed-instant",
"type" : "Led",
"color" : "blue",
"frequency" : 1000
},
{
"event-name" : "message-missed-notification",
"type" : "Led",
"color" : "blue",
"frequency" : 500
},
{
"event-name" : "message-missed-sms",
"type" : "Led",
"color" : "blue",
"frequency" : 2000
}
]
}
]
}

View File

@@ -0,0 +1,174 @@
{
"name" : "default",
"profiles" : [
{
"name" : "full",
"feedbacks" : [
{
"event-name" : "alarm-clock-elapsed",
"type" : "Sound",
"effect" : "alarm-clock-elapsed"
},
{
"event-name" : "button-pressed",
"type" : "Sound",
"effect" : "button-pressed"
},
{
"event-name" : "button-released",
"type" : "Sound",
"effect" : "button-released"
},
{
"event-name" : "message-new-email",
"type" : "Sound",
"effect" : "message-new-email"
},
{
"event-name" : "message-new-instant",
"type" : "Sound",
"effect" : "message-new-instant"
},
{
"event-name" : "message-new-sms",
"type" : "Sound",
"effect" : "message-new-instant"
},
{
"event-name" : "phone-incoming-call",
"type" : "Sound",
"effect" : "phone-incoming-call"
},
{
"event-name" : "timeout-completed",
"type" : "Sound",
"effect" : "complete"
},
{
"event-name" : "theme-demo",
"type" : "Sound",
"effect" : "theme-demo"
},
{
"event-name" : "window-close",
"type" : "Sound",
"effect" : "theme-demo"
}
]
},
{
"name" : "quiet",
"feedbacks" : [
{
"event-name" : "alarm-clock-elapsed",
"type" : "VibraPeriodic",
"magnitude" : 32767,
"duration" : 10000,
"fade-in-time" : 10000,
"fade-in-level": 4096
},
{
"event-name" : "bell-terminal",
"type" : "VibraRumble",
"duration" : 100
},
{
"event-name" : "button-pressed",
"type" : "VibraRumble",
"duration" : 15
},
{
"event-name" : "button-released",
"type" : "VibraRumble",
"duration" : 12
},
{
"event-name" : "message-new-email",
"type" : "VibraRumble",
"duration" : 750,
"count" : 3,
"pause" : 100
},
{
"event-name" : "message-new-instant",
"type" : "VibraRumble",
"duration" : 150
},
{
"event-name" : "message-new-sms",
"type" : "VibraRumble",
"duration" : 500,
"count" : 2,
"pause" : 100
},
{
"event-name" : "message-sent-instant",
"type" : "VibraRumble",
"duration" : 150
},
{
"event-name" : "phone-incoming-call",
"type" : "VibraPeriodic",
"duration" : 10000
},
{
"event-name" : "timeout-completed",
"type" : "VibraRumble",
"duration" : 100
},
{
"event-name" : "theme-demo",
"type" : "VibraPeriodic",
"magnitude" : 32767,
"duration" : 5000
},
{
"event-name" : "window-close",
"type" : "VibraRumble",
"duration" : 25
}
]
},
{
"name" : "silent",
"feedbacks" : [
{
"event-name" : "battery-caution",
"type" : "Led",
"color" : "red",
"frequency" : 5000
},
{
"event-name" : "phone-missed-call",
"type" : "Led",
"color" : "blue",
"frequency" : 3000
},
{
"event-name" : "message-missed-email",
"type" : "Led",
"color" : "blue",
"frequency" : 2000
},
{
"event-name" : "message-missed-instant",
"type" : "Led",
"color" : "blue",
"frequency" : 1000
},
{
"event-name" : "message-missed-notification",
"type" : "Led",
"color" : "blue",
"frequency" : 500
},
{
"event-name" : "message-missed-sms",
"type" : "Led",
"color" : "blue",
"frequency" : 2000
}
]
}
]
}

View File

@@ -0,0 +1,11 @@
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>marco@scardovi.com</email>
<name>Marco Scardovi</name>
</maintainer>
<upstream>
<remote-id type="github">atom/atom</remote-id>
</upstream>
</pkgmetadata>