summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a08dbc9579a762356bc1576a4c0e4d1807d536a9 (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
# Contributor: Hyacinthe Cartiaux <hyacinthe.cartiaux@free.fr>
# Contributor: Earnest <zibeon@gmail.com>
# Contributor: Eugeni Dodonov <eugeni@dodonov.net>
# Contributor: Tom Vincent <aur@tlvince.com>
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>

pkgname=powerstat-git
pkgver=0.02.27.r2.g72056da
pkgrel=1
pkgdesc='A tool for measuring a laptops power usage via the battery.'
arch=('i686' 'x86_64')
url="https://github.com/ColinIanKing/powerstat"
license=('GPL2')
depends=('glibc')
makedepends=('git')
provides=('powerstat')
conflicts=('powerstat')
source=("git+$url.git")
md5sums=('SKIP')

pkgver() {
    cd powerstat
    git describe --long --tags | sed 's/^V//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
    cd powerstat
    make
}

package() {
    cd powerstat
    make DESTDIR="$pkgdir" install
}