1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
9 if [ "${PV}" = "9999" ]; then
11 EGIT_REPO_URI="git://github.com/teleshoes/tpacpi-bat.git https://github.com/teleshoes/tpacpi-bat.git"
14 SRC_URI="https://github.com/teleshoes/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
17 DESCRIPTION="Control battery thresholds of recent ThinkPads, which are not supported by tp_smapi"
18 HOMEPAGE="https://github.com/teleshoes/tpacpi-bat"
25 RDEPEND="sys-power/acpi_call
29 dodoc README battery_asl
31 newinitd "${FILESDIR}"/${PN}.initd.1 ${PN}
32 newconfd "${FILESDIR}"/${PN}.confd.0 ${PN}
33 systemd_newunit tpacpi.service ${PN}.service