gjdwebserver-overlay/sys-power/gtherm/gtherm-0.0.3.ebuild
Gerben Jan Dijkman c5e3ab9578 sys-power/gtherm: Version Bump
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Gerben Jan Dijkman <gjdijkman@gjdwebserver.nl>
2021-11-12 12:43:19 +01:00

43 lines
873 B
Bash

# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
VALA_USE_DEPEND="vapigen"
inherit meson systemd vala
DESCRIPTION="A simple daemon to monitor thermal zones and cooling devices"
HOMEPAGE="https://source.puri.sm/Librem5/gtherm"
SRC_URI="https://source.puri.sm/Librem5/${PN}/-/archive/v${PV}/${PN}-v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
IUSE="+introspection +vala"
REQUIRED_USE="vala? ( introspection )"
DEPEND="
dev-libs/gobject-introspection
dev-util/gdbus-codegen
vala? ( $(vala_depend) )
"
RDEPEND="${DEPEND}"
S="${WORKDIR}/${PN}-v${PV}"
src_prepare() {
eapply_user
use vala && vala_src_prepare
}
src_install() {
meson_src_install
systemd_newuserunit "${S}"/debian/gthd.user.service "gthd.service"
}
pkg_postinst() {
systemd_reenable --global gthd
}