void-packages/srcpkgs/powerstat/template

16 lines
560 B
Bash

# Template file for 'powerstat'
pkgname=powerstat
version=0.02.17
revision=1
build_style=gnu-makefile
short_desc="Measures the power consumption using the ACPI battery information"
maintainer="Enno Boland <gottox@voidlinux.eu>"
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=9af97db342d40d7587874d8dbd3d88290ea366903e6cd4402c031a47f9cebfd3
do_build() {
make CC=$CC CFLAGS+="-DVERSION=\\\"$version\\\" $CFLAGS" ${makejobs}
}