mirror of https://github.com/srebrovvilen/cldg
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.3 KiB
51 lines
1.3 KiB
# Copyright 1999-2022 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit meson systemd
|
|
|
|
DESCRIPTION="Makes power profiles handling available over D-Bus."
|
|
HOMEPAGE="https://gitlab.freedesktop.org/hadess/power-profiles-daemon"
|
|
SRC_URI="https://gitlab.freedesktop.org/hadess/${PN}/-/archive/${PV}/${PN}-${PV}.tar.gz"
|
|
|
|
LICENSE="GPL-3+"
|
|
SLOT="0"
|
|
IUSE="doc"
|
|
|
|
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
|
|
|
|
BDEPEND=">=dev-libs/libgudev-234
|
|
>=sys-auth/polkit-0.114
|
|
sys-power/upower
|
|
dev-util/umockdev
|
|
dev-python/python-dbusmock
|
|
"
|
|
DEPEND="${BDEPEND}"
|
|
|
|
src_configure() {
|
|
local emesonargs=(
|
|
$(meson_use doc gtk_doc)
|
|
-Dsystemdsystemunitdir=$(systemd_get_systemunitdir)
|
|
)
|
|
meson_src_configure
|
|
}
|
|
|
|
src_install() {
|
|
meson_src_install
|
|
|
|
exeinto /etc/init.d/
|
|
newexe "${FILESDIR}/power-profiles-daemon.initd" power-profiles-daemon
|
|
|
|
exeinto /etc/conf.d/
|
|
newexe "${FILESDIR}/power-profiles-daemon.confd" power-profiles-daemon
|
|
|
|
exeinto /usr/lib/tmpfiles.d/
|
|
newexe "${FILESDIR}/power-profiles-daemon.tmpfiles" power-profiles-daemon.conf
|
|
}
|
|
|
|
pkg_postinst() {
|
|
ewarn "Don't forget to enable \"${PN}\" service, by runnning:"
|
|
ewarn "rc-update add ${PN} default && rc-service ${PN} start"
|
|
}
|