From f833e3608d1d4df97519f1b7d2e6b81eb963d0e4 Mon Sep 17 00:00:00 2001 From: q66 Date: Mon, 26 Oct 2020 02:54:40 +0100 Subject: [PATCH] crun: make go-md2man optional --- srcpkgs/crun/template | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/srcpkgs/crun/template b/srcpkgs/crun/template index 6622507a67f..48daba8cbe3 100644 --- a/srcpkgs/crun/template +++ b/srcpkgs/crun/template @@ -1,10 +1,10 @@ # Template file for 'crun' pkgname=crun version=0.15 -revision=1 +revision=2 build_style=gnu-configure configure_args="--disable-systemd" -hostmakedepends="pkg-config libtool python3 go-md2man" +hostmakedepends="pkg-config libtool python3 $(vopt_if man go-md2man)" makedepends="libcap-devel libseccomp-devel yajl-devel" short_desc="Lightweight OCI runtime written in C" maintainer="Imran Khan " @@ -17,6 +17,14 @@ if [ "$XBPS_TARGET_LIBC" = "musl" ]; then makedepends+=" argp-standalone" fi +build_options="man" +desc_option_man="Use go-md2man to build manpages" + +case "$XBPS_MACHINE" in + x86_64*|i686*|aarch64*|armv[67]*|ppc64le*) build_options_default="man";; + *) ;; +esac + post_install() { rm -f ${DESTDIR}/usr/lib/*.a }