summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 47ead61af93e9113e0c9aa2b2e8770a0b918b019 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Maintainer: Zhang Hai <dreaming.in.code.zh@gmail.com>

pkgname=tp-battery-mode
pkgver=1.2.0
pkgrel=1
pkgdesc="Module to manage the battery mode (lifetime/runtime) of your Thinkpad"
url="https://github.com/DreaminginCodeZH/tp-battery-mode"
arch=('x86_64' 'i686')
license=('GPL3')
depends=('tpacpi-bat')
source=(https://github.com/DreaminginCodeZH/${pkgname}/archive/v${pkgver}.tar.gz)
sha256sums=('8186699a537c7675400526c670e09b0693637a44bf31beb23fd8be33e2eb5a0a')

package() {
    cd "$srcdir/${pkgname}-${pkgver}"
    install -Dm755 "${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
    install -Dm644 "${pkgname}.conf" "${pkgdir}/etc/${pkgname}.conf"
    install -Dm644 "${pkgname}.service" "${pkgdir}/usr/lib/systemd/system/${pkgname}.service"
}