Skip to content

Commit

Permalink
app-admin/zenmonitor3: new package, add 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
liuyujielol authored and liangyongxiang committed Nov 6, 2023
1 parent 0117a35 commit bd5c6df
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 0 deletions.
1 change: 1 addition & 0 deletions app-admin/zenmonitor3/Manifest
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
11 changes: 11 additions & 0 deletions app-admin/zenmonitor3/metadata.xml
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>
44 changes: 44 additions & 0 deletions app-admin/zenmonitor3/zenmonitor3-2.0.0.ebuild
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
}

0 comments on commit bd5c6df

Please sign in to comment.