# Template file for 'earlyoom'
pkgname=earlyoom
version=1.1
revision=1
build_style=gnu-makefile
make_check_target=test
checkdepends="go"
short_desc="Userspace Early OOM Daemon for Linux"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="MIT"
homepage="https://github.com/rfjakob/earlyoom"
distfiles="https://github.com/rfjakob/${pkgname}/archive/v${version}.tar.gz"
checksum=10f700f4eac5322ae7c05520817450da25c2a492471305c8d79192f8fe21ab41

do_build() {
	${CC} ${CFLAGS} -DVERSION='"'v$version'"' -o earlyoom *.c ${LDFLAGS}
}

do_install() {
	vbin earlyoom
	vman earlyoom.1
	vsv earlyoom
	vlicense LICENSE
}
