mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 07:33:48 +02:00
conmon: only include docs on archs supported by go
This commit is contained in:
parent
409019fcf7
commit
61ef978a03
1 changed files with 13 additions and 3 deletions
|
@ -3,7 +3,7 @@ pkgname=conmon
|
||||||
version=2.1.2
|
version=2.1.2
|
||||||
revision=1
|
revision=1
|
||||||
build_style=gnu-makefile
|
build_style=gnu-makefile
|
||||||
hostmakedepends="pkg-config go-md2man"
|
hostmakedepends="pkg-config"
|
||||||
makedepends="libglib-devel libseccomp-devel"
|
makedepends="libglib-devel libseccomp-devel"
|
||||||
short_desc="OCI container runtime monitor"
|
short_desc="OCI container runtime monitor"
|
||||||
maintainer="Cameron Nemo <cnemo@tutanota.com>"
|
maintainer="Cameron Nemo <cnemo@tutanota.com>"
|
||||||
|
@ -12,13 +12,23 @@ homepage="https://github.com/containers/conmon"
|
||||||
distfiles="https://github.com/containers/conmon/archive/v${version}.tar.gz"
|
distfiles="https://github.com/containers/conmon/archive/v${version}.tar.gz"
|
||||||
checksum=8ba76eb54c319197235fd39c3a5b5a975b5a21e02cd4be985b8619220a497a0e
|
checksum=8ba76eb54c319197235fd39c3a5b5a975b5a21e02cd4be985b8619220a497a0e
|
||||||
|
|
||||||
|
_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() {
|
post_build() {
|
||||||
make -C docs GOMD2MAN=go-md2man
|
[ "$_have_docs" = "yes" ] && make -C docs GOMD2MAN=go-md2man || :
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
vbin bin/conmon
|
vbin bin/conmon
|
||||||
vmkdir usr/libexec/podman
|
vmkdir usr/libexec/podman
|
||||||
ln -sf ../../bin/conmon "${DESTDIR}/usr/libexec/podman"
|
ln -sf ../../bin/conmon "${DESTDIR}/usr/libexec/podman"
|
||||||
make -C docs install DESTDIR="$DESTDIR" PREFIX=/usr
|
[ "$_have_docs" = "yes" ] && make -C docs install DESTDIR="$DESTDIR" PREFIX=/usr || :
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue