Added feedbackd

This commit is contained in:
Gerben Jan Dijkman 2021-02-26 23:37:03 +01:00
parent 4e57eba241
commit 19a719f924
2 changed files with 61 additions and 0 deletions

View File

@ -0,0 +1 @@
DIST feedbackd-v0.0.0+git20210125.tar.gz 77368 BLAKE2B 882d9078db7d12a66c8eca6214e1a8ea6f9c5a34b55e5299234fbbd6f4c0adeb81911427b4d53bba8a6f8ac12fb8ff2618f6e8ecae67806877ec3fc67d86e5ea SHA512 1f0397052e0eb7815ed4f922065b3b283288a5aeceeb03feb9de0c303182c37526bbbcefdfbb7aac6116c29b6672c4e92fa7a022a9e02bb750931de93354ebd1

View File

@ -0,0 +1,60 @@
# Copyright 2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
#GNOME2_LA_PUNT="yes"
VALA_USE_DEPEND="vapigen"
inherit vala meson udev
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
IUSE="+introspection +vala"
REQUIRED_USE="vala? ( introspection )"
if [[ ${PV} == "0.0.0" ]]; then
MY_PV="v${PV}+git20210125"
MY_P="${PN}-${MY_PV}"
fi
DESCRIPTION="A daemon to provide haptic feedback on events"
HOMEPAGE="https://source.puri.sm/Librem5/feedbackd"
if [[ ${PV} == 9999 ]]; then
inherit vala meson udev git-r3
EGIT_REPO_URI="https://source.puri.sm/Librem5/feedbackd.git"
SRC_URI=""
else
EGIT_REPO_URI=""
SRC_URI="https://source.puri.sm/Librem5/feedbackd/-/archive/${MY_PV}/${MY_P}.tar.gz"
S=${WORKDIR}/${MY_P}
fi
LICENSE="LGPL-3"
SLOT="0"
DEPEND="
gnome-base/dconf
media-libs/gsound
dev-libs/json-glib
virtual/libudev
"
RDEPEND="${DEPEND}"
BDEPEND="
dev-libs/gobject-introspection
dev-util/meson
dev-util/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
}
src_install() {
default
meson_src_install
insinto /usr/share/feedbackd/themes
doins ${FILESDIR}/*.json
udev_newrules ${S}/debian/feedbackd.udev 90-feedbackd.rules
}