void-packages/srcpkgs/crun/template
Imran Khan 726185e699 crun: update to 1.0.
Closes: #32803 [via git-merge-pr]
2021-09-07 08:13:44 -04:00

37 lines
1 KiB
Bash

# Template file for 'crun'
pkgname=crun
version=1.0
revision=1
build_style=gnu-configure
configure_args="--disable-systemd"
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 <imrankhan@teknik.io>"
license="GPL-2.0-or-later, LGPL-2.1-or-later"
homepage="https://github.com/containers/crun"
distfiles="https://github.com/containers/crun/releases/download/${version}/crun-${version}.tar.gz"
checksum=e1745172bf603c6832e1a77ee2b7ac9ad4644cd0f4349704df84b66385bbbe61
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
do_check() {
if [ "$XBPS_CHECK_PKGS" = full ]; then
# most of the tests don't work inside a container
make check ${makejobs}
fi
}
post_install() {
rm -f ${DESTDIR}/usr/lib/*.a
}