1 # Copyright 2021 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION
="Zen monitor is monitoring software for AMD Zen-based CPUs"
9 HOMEPAGE
="https://github.com/ocerman/zenmonitor"
11 SRC_URI
="https://github.com/ocerman/${PN}/archive/v${PV}.tar.gz -> ${PN}-${PV}.tar.gz"
18 DEPEND
="x11-libs/gtk+:3
23 "${FILESDIR}"/${PN}.
patch
28 pushd data
> /dev
/null || die
29 for i
in org.pkexec.zenmonitor.policy zenmonitor-root.desktop zenmonitor.desktop
; do
32 popd > /dev
/null || die
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