diff --git a/srcpkgs/earlyoom/template b/srcpkgs/earlyoom/template index 338bc8896b3..5e9c5836bb1 100644 --- a/srcpkgs/earlyoom/template +++ b/srcpkgs/earlyoom/template @@ -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 " @@ -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 - vman earlyoom.1 + if [ "$build_option_man" ]; then + vman earlyoom.1 + fi vsv earlyoom vlicense LICENSE }