app-misc/tmux-battery - 9999 (nest)

Search

Package Information

Description:
Plug and play battery percentage and icon indicator for Tmux
Homepage:
https://github.com/tmux-plugins/tmux-battery
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
9999 8 0
View Raw Ebuild
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

EGIT_REPO_URI="https://github.com/tmux-plugins/${PN}.git"

inherit git-r3

DESCRIPTION="Plug and play battery percentage and icon indicator for Tmux"
HOMEPAGE="https://github.com/tmux-plugins/tmux-battery"

LICENSE="MIT"
SLOT="0"

RDEPEND="app-misc/tmux
	|| ( app-misc/jq sys-power/acpi sys-power/upower )"

src_install() {
	einstalldocs
	insinto /usr/share/tmux-plugins/tmux-battery
	doins -r scripts battery.tmux
	fperms -R +x /usr/share/tmux-plugins/tmux-battery/scripts/battery_{graph,icon,percentage,remain}.sh \
		/usr/share/tmux-plugins/tmux-battery/scripts/battery_status_{b,f}g.sh \
		/usr/share/tmux-plugins/tmux-battery/battery.tmux
}

Dependencies

RDEPEND

app-misc/tmux
	|| ( app-misc/jq sys-power/acpi sys-power/upower )