sys-power/gtherm: add new package

gtherm is the temperature daemon for mobile phone/tablets

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-23 22:20:35 +02:00
parent 0b6688afa3
commit 546b8e64ce
3 changed files with 50 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST gtherm-0.0.2.tar.gz 39325 BLAKE2B 4ccf4d080de2c14014e4fac579b11a12e1007c7ed1aaf1d3e45f142e61f28a106d58c287315a3d0417552bab83e3ee8bce9a55cc344a1db0c6a0953a846f0ac7 SHA512 1241c19be3138dbe4e9d223236005a2eb7c1f3dbadd3bb3e083a273a0dd611acaf85e21df2c9d1f7ebe26afdefacfe0f7d2ba8960d18a3224a603b6e91e38a6b

View File

@@ -0,0 +1,41 @@
# 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="
vala? ( $(vala_depend) )
dev-libs/gobject-introspection
"
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
}

View File

@@ -0,0 +1,8 @@
<?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>
</pkgmetadata>