mirror of
https://github.com/gentoo-mirror/gentoo-zh.git
synced 2025-04-19 07:48:56 -04:00
sys-power/tlpui: add 1.6.5
Signed-off-by: xz-dev <xiangzhedev@gmail.com>
This commit is contained in:
parent
e176d2b298
commit
12c7ec5740
@ -1,2 +1,3 @@
|
||||
DIST tlpui-1.5.0-6.tar.gz 429569 BLAKE2B 126e4480f7b119caeaa063ad3c5ce04b52deac55f6783e78b139e24a4e79718d13c68c28eb1ef04c8c171434f1a7e5f584df740240d058a74ee12b6b91070fea SHA512 799f57945bea395f82baeeb516b102385fcb0795254f040d994a5c9903d8b71e0256d23e16ebf14683ccc7866ec091bca201cb90090e2ff89abadebfd657e6c7
|
||||
DIST tlpui-1.6.0.tar.gz 462039 BLAKE2B 21df061860384bfbe0f1f82a4b015d0a657a68364bd0e9c1d43169204370bc06ea3ee7f8866c0b7de8b01b6f6645d6954c9fcc03eeab17c8f689fdcfb6f0e64d SHA512 cbe4b2cada4c51d8a331fa7f46b85c526e74fa939bdd07715df685c4205d4a43cc27f22d355a3aeda36ba6b085b7c2b93bead3480b0db853f67d916685867ca8
|
||||
DIST tlpui-1.6.5.tar.gz 920652 BLAKE2B 7fd1f3fa160a50292e5bdd6b592985bb0812a4bb386cb9b1163c356caa2e4838465581406929ce7f21ebb44ed07a84d5167189488dec9d33236163b5310bafe2 SHA512 c2c67baeadd07550450ea088ee96ae3fcd1a7ec02f65d659fad3844b31507db6c2e2090108108c37a3cdb7c3db882c5d7aa7d8221bdca166e664b247dd15e588
|
||||
|
51
sys-power/tlpui/tlpui-1.6.5.ebuild
Normal file
51
sys-power/tlpui/tlpui-1.6.5.ebuild
Normal file
@ -0,0 +1,51 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=poetry
|
||||
PYTHON_COMPAT=( python3_{9..12} )
|
||||
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"
|
||||
RESTRICT="test"
|
||||
|
||||
RDEPEND="
|
||||
sys-apps/usbutils
|
||||
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"
|
||||
domenu "${S}/tlpui.desktop"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_icon_cache_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_icon_cache_update
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user