blob: 4dfc7d2b28af615bac9f60aea7ae60832428e668 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# Maintainer: Frederik Schwan <frederik dot schwan at linux dot com>
# Contributor: Lucky <archlinux@builds.lucky.li>
pkgname=tpacpi-bat-git
_pkgname="${pkgname%-*}"
pkgver=94.06ec1d5
pkgrel=1
pkgdesc="A Perl script with ACPI calls for recent ThinkPads (such as T420 and W520) whose battery thresholds are not supported by tp_smapi"
url="https://github.com/teleshoes/tpacpi-bat"
license=("GPLv3")
arch=("any")
depends=("perl" "acpi_call")
makedepends=("git")
conflicts=("${_pkgname}")
provides=("${_pkgname}")
source=("git://github.com/teleshoes/tpacpi-bat.git"
"tlp.patch")
md5sums=("SKIP"
"9799f80a35939a0dd009d05c94418fbf")
pkgver() {
cd "${_pkgname}"
echo $(git rev-list --count master).$(git rev-parse --short master)
}
prepare() {
cd "${_pkgname}"
# patch -uNp1 -i "${srcdir}/tlp.patch"
}
package() {
cd "${_pkgname}"
install -Dm755 "${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
install -Dm644 "${_pkgname%-*}.service" "${pkgdir}/usr/lib/systemd/system/${_pkgname}.service"
}
|