2023-01-19 16:05:20 +01:00
|
|
|
# Copyright 1999-2022 Gentoo Authors
|
2023-01-06 18:53:13 +01:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=8
|
|
|
|
VALA_USE_DEPEND="vapigen"
|
|
|
|
|
2023-01-19 16:05:20 +01:00
|
|
|
inherit vala meson udev
|
2023-01-06 18:53:13 +01:00
|
|
|
|
2023-01-19 16:05:20 +01:00
|
|
|
GMO_COMMIT="1039e7808195d4de367ce2718481641ca8af2427"
|
2023-01-19 15:57:36 +01:00
|
|
|
|
2023-01-06 18:53:13 +01:00
|
|
|
DESCRIPTION="A daemon to provide haptic feedback on events"
|
|
|
|
HOMEPAGE="https://source.puri.sm/Librem5/feedbackd"
|
2023-01-19 15:57:36 +01:00
|
|
|
SRC_URI="
|
|
|
|
https://source.puri.sm/Librem5/${PN}/-/archive/v${PV}/${PN}-v${PV}.tar.gz
|
|
|
|
https://gitlab.gnome.org/guidog/gmobile/-/archive/${GMO_COMMIT}/gmobile-${GMO_COMMIT}.tar.gz
|
2023-01-19 16:05:20 +01:00
|
|
|
"
|
2023-01-06 18:53:13 +01:00
|
|
|
S="${WORKDIR}/${PN}-v${PV}"
|
|
|
|
|
|
|
|
LICENSE="LGPL-3"
|
|
|
|
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
|
|
|
|
SLOT="0"
|
2023-01-19 16:05:20 +01:00
|
|
|
IUSE="+introspection +vala"
|
2023-01-06 18:53:13 +01:00
|
|
|
REQUIRED_USE="vala? ( introspection )"
|
|
|
|
|
|
|
|
DEPEND="
|
2023-01-19 16:05:20 +01:00
|
|
|
gnome-base/dconf
|
|
|
|
media-libs/gsound
|
|
|
|
dev-libs/json-glib
|
|
|
|
dev-libs/libgudev:=
|
2023-01-06 18:53:13 +01:00
|
|
|
"
|
|
|
|
RDEPEND="${DEPEND}
|
|
|
|
dev-libs/feedbackd-device-themes
|
|
|
|
"
|
|
|
|
BDEPEND="
|
2023-01-19 16:05:20 +01:00
|
|
|
dev-libs/gobject-introspection
|
2023-01-06 18:53:13 +01:00
|
|
|
vala? ( $(vala_depend) )
|
|
|
|
"
|
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
default
|
|
|
|
|
|
|
|
use vala && vala_setup
|
|
|
|
sed -i 's/-G feedbackd/-G video/g' debian/feedbackd.udev || die
|
2023-01-19 15:57:36 +01:00
|
|
|
|
|
|
|
rm -r "${S}"/subprojects/gmobile || die
|
|
|
|
mv "${WORKDIR}"/gmobile-"${GMO_COMMIT}" "${S}"/subprojects/gmobile || die
|
2023-01-06 18:53:13 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
meson_src_install
|
2023-01-19 15:57:36 +01:00
|
|
|
udev_newrules "${S}/debian/feedbackd.udev" 90-feedbackd.rules
|
2023-01-07 23:10:25 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
pkg_postinst() {
|
|
|
|
udev_reload
|
|
|
|
}
|
|
|
|
|
|
|
|
pkg_postrm() {
|
|
|
|
udev_reload
|
2023-01-06 18:53:13 +01:00
|
|
|
}
|