40 lines
1.5 KiB
Bash
40 lines
1.5 KiB
Bash
# Template file for 'trace-cmd'
|
|
pkgname=trace-cmd
|
|
version=2.8.3
|
|
revision=2
|
|
wrksrc="${pkgname}-v${version}"
|
|
build_style=gnu-makefile
|
|
make_build_args="prefix=/usr all gui doc"
|
|
make_install_args="prefix=/usr install install_gui install_doc"
|
|
make_use_env=1
|
|
hostmakedepends="git asciidoc pkg-config cmake"
|
|
makedepends="json-c-devel libfreeglut-devel libxml2-devel qt5-devel"
|
|
short_desc="Tools to use ftrace Linux kernel internal tracer"
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|
license="GPL-2.0-or-later, LGPL-2.1-only"
|
|
homepage="http://git.kernel.org/cgit/linux/kernel/git/rostedt/trace-cmd.git/"
|
|
distfiles="http://git.kernel.org/cgit/linux/kernel/git/rostedt/${pkgname}.git/snapshot/${pkgname}-v${version}.tar.gz"
|
|
checksum=706564b147bd966957431c4ca70032947d59c5d977c1ac2942b1b5a8668e7a6f
|
|
nocross="cmake foo"
|
|
disable_parallel_build=yes
|
|
|
|
post_install() {
|
|
vmkdir usr/share/bash-completion/completions
|
|
mv ${DESTDIR}/etc/bash_completion.d/* ${DESTDIR}/usr/share/bash-completion/completions
|
|
}
|
|
|
|
kernelshark_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc="GUI for ftrace Linux kernel internal tracer"
|
|
pkg_install() {
|
|
vmove usr/bin/kernelshark
|
|
vmove usr/bin/kshark-record
|
|
vmove usr/bin/kshark-su-record
|
|
vmove usr/lib/kernelshark
|
|
vmove usr/share/man/man1/kernelshark.1
|
|
vmove usr/share/kernelshark/html
|
|
vmove usr/share/applications/kernelshark.desktop
|
|
vmove usr/share/icons/kernelshark/ksharkicon.png
|
|
vmove usr/share/polkit-1/actions/org.freedesktop.kshark-record.policy
|
|
}
|
|
}
|