void-packages/srcpkgs/cpulimit/template

21 lines
572 B
Bash

# Template file for 'cpulimit'
pkgname=cpulimit
version=0.2
revision=2
build_style=gnu-makefile
short_desc="Tool to limit the CPU usage of a process"
maintainer="Steve Prybylski <sa.prybylx@gmail.com>"
license="GPL-2"
homepage="https://github.com/opsengine/cpulimit"
distfiles="https://github.com/opsengine/${pkgname}/archive/v${version}.tar.gz"
checksum=64312f9ac569ddcadb615593cd002c94b76e93a0d4625d3ce1abb49e08e2c2da
pre_build() {
export CFLAGS="$CFLAGS $LDFLAGS"
vsed -i -e "s;<sys/sysctl.h>;<linux/sysctl.h>;" src/cpulimit.c
}
do_install() {
vbin src/cpulimit
}