void-packages/srcpkgs/powerstat/template

16 lines
561 B
Bash

# Template file for 'powerstat'
pkgname=powerstat
version=0.02.18
revision=1
build_style=gnu-makefile
short_desc="Measures the power consumption using the ACPI battery information"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="http://kernel.ubuntu.com/~cking/powerstat/"
distfiles="http://kernel.ubuntu.com/~cking/tarballs/powerstat/powerstat-${version}.tar.gz"
checksum=a5be7df819c1d60edbaabde13ef09c72b1bc1375ae3cad3444f0c084abf399be
do_build() {
make CC=$CC CFLAGS+="-DVERSION=\\\"$version\\\" $CFLAGS" ${makejobs}
}