-
Notifications
You must be signed in to change notification settings - Fork 193
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
app-admin/zenmonitor3: new package, add 2.0.0
- Loading branch information
1 parent
0117a35
commit bd5c6df
Showing
3 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DIST zenmonitor3-2.0.0.tar.gz 83643 BLAKE2B e5560f944c9901651bcc61810d2badec32ebf9ca9b4c8a958d37f5d433a36280b433d7226560341f5861b74ad97bc3b263368db6fe1dabac6d7ea5f698ea4ffe SHA512 bbdb484ff4823a43812e37a4a087455c285631f179e36260b2052481ec0c697995f907d46865d40f1ab66a3ce9c051a97b984107818957b1ebb0407a008a5925 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> | ||
<pkgmetadata> | ||
<maintainer type="person"> | ||
<email>[email protected]</email> | ||
<name>liuyujielol</name> | ||
</maintainer> | ||
<use> | ||
<flag name="polkit">Install polkit policy for app-admin/zenmonitor3</flag> | ||
</use> | ||
</pkgmetadata> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Copyright 2023 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=8 | ||
|
||
inherit xdg | ||
|
||
DESCRIPTION="Zen monitor is monitoring software for AMD Zen-based CPUs" | ||
HOMEPAGE="https://git.exozy.me/a/zenmonitor3" | ||
|
||
if [[ ${PV} == 9999 ]] ; then | ||
EGIT_REPO_URI="https://git.exozy.me/a/zenpower3.git" | ||
inherit git-r3 | ||
else | ||
SRC_URI="https://git.exozy.me/a/zenmonitor3/archive/v${PV}.tar.gz -> ${P}.tar.gz" | ||
S="${WORKDIR}/${PN}" | ||
KEYWORDS="~amd64" | ||
fi | ||
|
||
LICENSE="MIT" | ||
SLOT="0" | ||
IUSE="+polkit" | ||
|
||
DEPEND=" | ||
x11-libs/gtk+:3 | ||
sys-kernel/zenpower3 | ||
polkit? ( sys-auth/polkit ) | ||
" | ||
RDEPEND="${DEPEND}" | ||
|
||
src_install() { | ||
emake DESTDIR="${ED}" PREFIX=/usr install | ||
sed -i "s#${ED}##" "${ED}/usr/share/applications/zenmonitor.desktop" || die | ||
|
||
if use polkit; then | ||
mkdir -p "${ED}/usr/share/polkit-1/actions" || die | ||
emake DESTDIR="${ED}" PREFIX=/usr install-polkit | ||
sed -i "s#${ED}##" "${ED}/usr/share/applications/zenmonitor-root.desktop" || die | ||
sed -i "s#${ED}##" "${ED}/usr/share/polkit-1/actions/org.pkexec.zenmonitor.policy" || die | ||
fi | ||
|
||
local DOCS=( README.md ) | ||
einstalldocs | ||
} |