earlyoom: optional pandoc

This commit is contained in:
q66 2020-11-24 04:21:33 +01:00
parent cb3e4c1ea3
commit 0021fa2dc7
1 changed files with 12 additions and 3 deletions

View File

@ -1,10 +1,10 @@
# Template file for 'earlyoom'
pkgname=earlyoom
version=1.6.2
revision=1
revision=2
build_style=gnu-makefile
make_check_target=test
hostmakedepends="pandoc"
hostmakedepends="$(vopt_if man pandoc)"
checkdepends="go"
short_desc="Userspace Early OOM Daemon for Linux"
maintainer="Leah Neukirchen <leah@vuxu.org>"
@ -14,9 +14,18 @@ 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
}