void-packages/srcpkgs/sysdig/template

47 lines
1.5 KiB
Bash

# Template file for 'sysdig'
pkgname=sysdig
version=0.28.0
revision=7
build_style=cmake
configure_args="-DSYSDIG_VERSION=${version} -DUSE_BUNDLED_DEPS=OFF
-DUSE_BUNDLED_B64=ON -DUSE_BUNDLED_JQ=ON -DBUILD_DRIVER=OFF
-DLUA_INCLUDE_DIR=${XBPS_CROSS_BASE}/usr/include/luajit-2.1
-DLUA_LIBRARY=/usr/lib/libluajit-5.1.so -DCREATE_TEST_TARGETS=OFF"
make_cmd=make
hostmakedepends="wget pkg-config protobuf"
makedepends="LuaJIT-devel c-ares-devel elfutils-devel grpc-devel jsoncpp-devel
libcurl-devel libprotoc-devel openssl-devel ncurses-devel protobuf-devel
tbb-devel zlib-devel"
depends="dkms"
short_desc="Open source system-level exploration and troubleshooting tool"
maintainer="Orphaned <orphan@voidlinux.org>"
license="Apache-2.0, MIT, GPL-2.0-only"
homepage="http://www.sysdig.org/"
changelog="https://github.com/draios/sysdig/releases"
distfiles="https://github.com/draios/${pkgname}/archive/${version}.tar.gz"
checksum=817e595d501acf3fe11dc659a154aadbba848dd87ae801f5bf34a42e84979f37
disable_parallel_build=yes
dkms_modules="scap 2160111cd088aea9ae2235d3385ecb0b1ab6623c"
nocross=yes
case "$XBPS_TARGET_MACHINE" in
*-musl) configure_args+=" -DMUSL_OPTIMIZED_BUILD=On"
esac
export CMAKE_GENERATOR="Unix Makefiles"
# Avoid excessive warnings spam to the log
CXXFLAGS="-Wno-deprecated-declarations"
CXXFLAGS+=" -I/usr/include/grpc_absl"
post_extract() {
sed -i 's,"${DIR_ETC}/bash_completion.d",share/bash-completion/completions,g' scripts/CMakeLists.txt
}
post_install() {
rm -rf ${DESTDIR}/usr/share/zsh/vendor-completions
vlicense COPYING
vlicense NOTICES
}