# Template file for 'sysdig' pkgname=sysdig version=0.33.1 revision=5 _falcover=59fb313475b82f842e9e9bbc1e0e629428c0a4cf build_style=cmake configure_args="-DSYSDIG_VERSION=${version} -DUSE_BUNDLED_DEPS=OFF -DUSE_BUNDLED_B64=OFF -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 -DUSE_BUNDLED_JSONCPP=OFF -DUSE_BUNDLED_RE2=OFF -DUSE_BUNDLED_VALIJSON=OFF -DUSE_BUNDLED_TBB=OFF -DBUILD_LIBSCAP_EXAMPLES=OFF -DCMAKE_CXX_STANDARD=17 -DCMAKE_CXX_EXTENSIONS=OFF -DDRIVER_VERSION=${_falcover}" 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 libb64-devel tbb-devel zlib-devel yaml-cpp-devel json-c++ jq-devel re2-devel valijson" depends="dkms" short_desc="Open source system-level exploration and troubleshooting tool" maintainer="Orphaned " 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/sysdig/archive/${version}.tar.gz https://github.com/falcosecurity/libs/archive/${_falcover}.tar.gz" checksum="c7d833fbc98f7d7216a302f93acf18347fef304fc942c67513dd4df1a1423cad cc191f4ae987a894a4fa8954e8fbcce9b8b6f85cb34b0f2fed7578e8edcde189" dkms_modules="scap ${_falcover}" nocross=yes skip_extraction="${_falcover}.tar.gz" case "$XBPS_TARGET_MACHINE" in i686*) broken="/syscall_table.c:567:10: error: '__NR_rt_tgsigqueueinfo'";; *-musl) configure_args+=" -DMUSL_OPTIMIZED_BUILD=On";; esac # Avoid excessive warnings spam to the log CXXFLAGS="-Wno-deprecated-declarations" post_extract() { vsrcextract -C .xbps-falco "${_falcover}.tar.gz" vsed -e 's,"${DIR_ETC}/bash_completion.d",share/bash-completion/completions,g' -i scripts/CMakeLists.txt } post_install() { rm -rf ${DESTDIR}/usr/share/zsh/vendor-completions vlicense COPYING vlicense NOTICES }