void-packages/srcpkgs/conmon/template

35 lines
934 B
Bash

# Template file for 'conmon'
pkgname=conmon
version=2.1.5
revision=1
build_style=gnu-makefile
hostmakedepends="pkg-config"
makedepends="libglib-devel libseccomp-devel"
short_desc="OCI container runtime monitor"
maintainer="Cameron Nemo <cam@nohom.org>"
license="Apache-2.0"
homepage="https://github.com/containers/conmon"
distfiles="https://github.com/containers/conmon/archive/v${version}.tar.gz"
checksum=ee3179ee2b9a9107acec00eb546062cf7deb847f135a3b81503d22b0d226b3ed
_have_docs=no
case "$XBPS_MACHINE" in
x86_64*|ppc64le*|aarch64*|arm*|i686*) _have_docs=yes;;
esac
if [ "$_have_docs" = "yes" ]; then
hostmakedepends+=" go-md2man"
fi
post_build() {
[ "$_have_docs" = "yes" ] && make -C docs GOMD2MAN=go-md2man || :
}
do_install() {
vbin bin/conmon
vmkdir usr/libexec/podman
ln -sf ../../bin/conmon "${DESTDIR}/usr/libexec/podman"
[ "$_have_docs" = "yes" ] && make -C docs install DESTDIR="$DESTDIR" PREFIX=/usr || :
}