powerstat: simplify and use do_build.

This commit is contained in:
Juan RP 2015-05-19 08:24:54 +02:00
parent e01a814227
commit 78c2328bf0
1 changed files with 4 additions and 2 deletions

View File

@ -9,5 +9,7 @@ license="GPL-2"
homepage="http://kernel.ubuntu.com/~cking/powerstat/"
distfiles="http://kernel.ubuntu.com/~cking/tarballs/powerstat/powerstat-${version}.tar.gz"
checksum=fbed92b3783a44d9e55203a5cdb2204fe8b9ac9ec91d5b86a83b7e148ca933bf
# setting version fails, do it manually
CFLAGS="-DVERSION=\\\"$version\\\""
do_build() {
make CC=$CC ${makejobs}
}