void-packages/srcpkgs/kernelshark/template

41 lines
1.5 KiB
Bash
Raw Normal View History

# Template file for 'kernelshark'
pkgname=kernelshark
reverts="2.9.1_1 2.9_1 2.8.3_2 2.8.3_1 2.8.2_1 2.8.1_1 2.7_2 2.7_1 2.6.2_1 2.6.1_1
2.6_1 2.5.3_3 2.5.3_2 2.5.3_1 2.5.1_1 2.5_1 2.4_1"
version=2.1.1
revision=1
build_style=cmake
# It's PKG_CONGIG_DIR not PKG_CONFIG_DIR
configure_args="-D_INSTALL_PREFIX=/usr -D_LIBDIR=/usr/lib$XBPS_TARGET_WORDSIZE
-DPKG_CONGIG_DIR=/usr/lib/pkgconfig -DTT_FONT_FILE=/usr/share/fonts/TTF/FreeSans.ttf
-DTRACECMD_EXECUTABLE=/usr/bin/trace-cmd -DCMAKE_SKIP_RPATH=ON"
hostmakedepends="qt5-qmake qt5-host-tools pkg-config"
makedepends="libfreeglut-devel qt5-devel json-c-devel libXmu-devel libXi-devel
libtraceevent-devel libtracefs-devel libtracecmd-devel"
depends="freefont-ttf trace-cmd"
short_desc="Front end reader of trace-cmd(1) output"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="GPL-3.0-or-later"
homepage="https://www.kernelshark.org"
distfiles="https://git.kernel.org/pub/scm/utils/trace-cmd/kernel-shark.git/snapshot/kernel-shark-kernelshark-v${version}.tar.gz"
checksum=78a0cf28bc06d0e43cd5a2512f83c02b7b5c969a26a0d4b56338154d6cf6f7be
# requires externally-downloaded data and segfaults on some gui tests
make_check=no
libkshark_package() {
short_desc+=" - library"
pkg_install() {
vmove "usr/lib/libkshark.so.*"
}
}
libkshark-devel_package() {
depends="libkshark>=${version}_${revision} ${makedepends}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}