sys-power/tlpui: new package, add 1.5.0-6
This commit is contained in:
1 parent
f686f71974
commit
f4bfbf5150
3 files changed
+73
No files matched your search
@@ -0,0 +1 @@
|
||||
DIST tlpui-1.5.0-6.tar.gz 429569 BLAKE2B 126e4480f7b119caeaa063ad3c5ce04b52deac55f6783e78b139e24a4e79718d13c68c28eb1ef04c8c171434f1a7e5f584df740240d058a74ee12b6b91070fea SHA512 799f57945bea395f82baeeb516b102385fcb0795254f040d994a5c9903d8b71e0256d23e16ebf14683ccc7866ec091bca201cb90090e2ff89abadebfd657e6c7
|
||||
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<name>123485k</name>
|
||||
<email>1758961307@qq.com</email>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">d4nj1/TLPUI</remote-id>
|
||||
</upstream>
|
||||
<longdescription>
|
||||
The Python scripts in this project generate a GTK-UI
|
||||
to change TLP configuration files easily.
|
||||
It has the aim to protect users from setting bad
|
||||
configuration and to deliver a basic overview of all
|
||||
the valid configuration values.
|
||||
</longdescription>
|
||||
</pkgmetadata>
|
||||
@@ -0,0 +1,54 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{9..11} )
|
||||
DISTUTILS_SINGLE_IMPL=y
|
||||
inherit distutils-r1 desktop xdg-utils
|
||||
|
||||
if [[ $(ver_cut 4) == "p" ]] ; then
|
||||
MY_PV="$(ver_cut 1-3)-$(ver_cut 5)"
|
||||
else
|
||||
MY_PV="${PV}"
|
||||
fi
|
||||
|
||||
MY_P="${PN}-${MY_PV}"
|
||||
|
||||
DESCRIPTION="A GTK user interface for TLP written in Python"
|
||||
HOMEPAGE="https://github.com/d4nj1/TLPUI"
|
||||
KEYWORDS="~amd64"
|
||||
SRC_URI="https://github.com/d4nj1/TLPUI/archive/refs/tags/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2+"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
RESTRICT="test"
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
sys-power/tlp
|
||||
$(python_gen_cond_dep 'dev-python/pycairo[${PYTHON_USEDEP}] dev-python/pygobject[${PYTHON_USEDEP}]')
|
||||
x11-libs/gtksourceview:3.0
|
||||
"
|
||||
|
||||
S="${WORKDIR}/TLPUI-${MY_P}"
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
doicon -s scalable "${S}/tlpui/icons/themeable/hicolor/scalable/apps/tlpui.svg"
|
||||
insinto /usr/share/metainfo
|
||||
doins "${S}/AppImage/com.github.d4nj1.tlpui.appdata.xml"
|
||||
newmenu "${S}/tlpui.desktop" tlpui.desktop
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_icon_cache_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_icon_cache_update
|
||||
}
|
||||
Reference in new issue
Block a user