void-packages/srcpkgs/earlyoom/template

32 lines
791 B
Bash

# Template file for 'earlyoom'
pkgname=earlyoom
version=1.6.2
revision=2
build_style=gnu-makefile
make_check_target=test
hostmakedepends="$(vopt_if man pandoc)"
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=227234cf9e77831c21c748bd361e1a7c415e158b96034eacd59e70586779bb6c
CFLAGS="-DVERSION='\"${version}\"'"
build_options="man"
desc_option_man="Use pandoc for manpages"
case "$XBPS_MACHINE" in
x86_64*|i686|ppc64le*) build_options_default="man" ;;
esac
do_install() {
vbin earlyoom
if [ "$build_option_man" ]; then
vman earlyoom.1
fi
vsv earlyoom
vlicense LICENSE
}