summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3b6363a0a41c2a01e17541b1dcf0d9191d2bcac6 (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
# Maintainer: Dylan Barker <dthomasbarker@gmail.com>
pkgname=battmngr
pkgver=r10.00b3a6d
pkgrel=1
pkgdesc="Battery manager to handle system performance modes and charge modes 
        through acpi_calls (for ideapad 15are05)."
url="https://github.com/0xless/battmngr"
arch=('x86_64')
license=('GPL3')
depends=('acpi_call')
makedepends=('git')
provides=("${pkgname}")
source=("git+$url")
sha256sums=('SKIP')

pkgver() {
    cd ${pkgname}
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
    cd ${pkgname}
    install -D "${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
    install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}