44 lines
1.3 KiB
Bash
44 lines
1.3 KiB
Bash
# Template file for 'trace-cmd'
|
|
pkgname=trace-cmd
|
|
version=3.3.1
|
|
revision=1
|
|
build_style=gnu-makefile
|
|
make_build_args="libdir_relative=lib${XBPS_TARGET_WORDSIZE}"
|
|
make_build_target="all libs doc"
|
|
make_install_args="$make_build_args pkgconfig_dir=/usr/lib/pkgconfig"
|
|
make_install_target="install install_libs install_doc"
|
|
make_use_env=yes
|
|
hostmakedepends="asciidoc xmlto source-highlight pkg-config"
|
|
makedepends="libzstd-devel libtracefs-devel libtraceevent-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="https://trace-cmd.org"
|
|
distfiles="https://git.kernel.org/pub/scm/utils/trace-cmd/trace-cmd.git/snapshot/trace-cmd-v${version}.tar.gz"
|
|
checksum=2efe103389367e93c764c4a788880ba51018a65dec21b0411965a5f06a6338c1
|
|
make_check=no # needs privileges
|
|
|
|
post_install() {
|
|
rm ${DESTDIR}/etc/bash_completion.d/*
|
|
vcompletion tracecmd/trace-cmd.bash bash
|
|
}
|
|
|
|
libtracecmd_package() {
|
|
short_desc+=" - library"
|
|
pkg_install() {
|
|
vmove "usr/lib/*.so.*"
|
|
}
|
|
}
|
|
|
|
libtracecmd-devel_package() {
|
|
depends="libtracecmd>=${version}_${revision} ${makedepends}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/share/man/man3
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/share/doc/libtracecmd-doc
|
|
}
|
|
}
|