kernelshark: split from trace-cmd, update to 2.1.1
This commit is contained in:
parent
b698913769
commit
783c07738a
|
@ -4205,3 +4205,4 @@ libairspyhf.so.0 libairspyhf-1.6.8_1
|
|||
libtraceevent.so.1 libtraceevent-1.6.2_1
|
||||
libtracefs.so.1 libtracefs-1.4.2_1
|
||||
libtracecmd.so.1 libtracecmd-3.1.2_1
|
||||
libkshark.so.2 libkshark-2.1.1_1
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
--- a/src/libkshark.h
|
||||
+++ b/src/libkshark.h
|
||||
@@ -17,6 +17,7 @@
|
||||
#include <string.h>
|
||||
#include <pthread.h>
|
||||
#include <errno.h>
|
||||
+#include <sys/types.h>
|
||||
|
||||
// Json-C
|
||||
#include <json-c/json.h>
|
||||
--- a/src/kernelshark.cpp
|
||||
+++ b/src/kernelshark.cpp
|
||||
@@ -7,6 +7,7 @@
|
||||
// C
|
||||
#include <sys/stat.h>
|
||||
#include <getopt.h>
|
||||
+#include <libgen.h>
|
||||
|
||||
// Qt
|
||||
#include <QApplication>
|
|
@ -0,0 +1,40 @@
|
|||
# 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"
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
pkgname=kernel-shark-kernelshark
|
|
@ -0,0 +1 @@
|
|||
kernelshark
|
|
@ -0,0 +1 @@
|
|||
kernelshark
|
Loading…
Reference in New Issue