Copied from: https://gitea.matetelki.eu/denes/battery-status-ledmaster
parent
e802810990
commit
ea4d995ed4
@ -0,0 +1,45 @@
|
||||
# Copyright 2018 Denes Matetelki
|
||||
# Distributed under the terms of the GNU General Public License v3
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit git-r3 systemd linux-info
|
||||
|
||||
DESCRIPTION="Battery (low/critical) status indication by making a (the capslock) LED blink"
|
||||
HOMEPAGE="https://gitea.matetelki.eu/denes/battery-status-led"
|
||||
SRC_URI=""
|
||||
EGIT_REPO_URI="https://gitea.matetelki.eu/denes/battery-status-led.git"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
CONFIG_CHECK="X86_PLATFORM_DEVICES"
|
||||
|
||||
pkg_pretend() {
|
||||
if use kernel_linux ; then
|
||||
if [[ -e "${ROOT}"/usr/src/linux/.config ]] ; then
|
||||
check_extra_config
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
DOCS="README.md"
|
||||
|
||||
src_install() {
|
||||
dodoc ${DOCS}
|
||||
dobin battery-status-led
|
||||
doman *.1
|
||||
systemd_dounit battery-status-led.service
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "Make sure you have your laptop's ACPI module compiled into your kernel:"
|
||||
elog "Device Drivers > X86 Platform Specific Device Drivers"
|
||||
elog "For example: Asus laptop extras, ThinkPad ACPI Laptop Extras, etc."
|
||||
elog "You can specify which LED device to use by editing the service file."
|
||||
}
|
Loading…
Reference in new issue