packages dropped
[gentoo-zh.git] / app-admin / zenmonitor / zenmonitor-1.4.2.ebuild
blob71747ce057b1c1424aca1aaacccd4d8a4f789193
1 # Copyright 2021 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
4 EAPI=8
6 inherit desktop
8 DESCRIPTION="Zen monitor is monitoring software for AMD Zen-based CPUs"
9 HOMEPAGE="https://github.com/ocerman/zenmonitor"
10 KEYWORDS="~amd64"
11 SRC_URI="https://github.com/ocerman/${PN}/archive/v${PV}.tar.gz -> ${PN}-${PV}.tar.gz"
13 LICENSE="MIT"
14 SLOT="0"
15 IUSE="policykit"
16 RESTRICT="mirror"
18 DEPEND="x11-libs/gtk+:3
19 sys-kernel/zenpower"
20 RDEPEND="${DEPEND}"
22 PATCHES=(
23 "${FILESDIR}"/${PN}.patch
26 src_prepare() {
27 default
28 pushd data > /dev/null || die
29 for i in org.pkexec.zenmonitor.policy zenmonitor-root.desktop zenmonitor.desktop; do
30 mv $i.in $i || die
31 done
32 popd > /dev/null || die
35 src_compile() {
36 make
39 src_install() {
40 dobin zenmonitor
41 domenu data/zenmonitor.desktop
43 if use policykit; then
44 mkdir -p "${D}"/usr/share/polkit-1/actions || die
45 cp data/org.pkexec.zenmonitor.policy "${D}"/usr/share/polkit-1/actions/ || die
46 domenu data/zenmonitor-root.desktop