void-packages/srcpkgs/trace-cmd/template

44 lines
1.3 KiB
Bash

# Template file for 'trace-cmd'
pkgname=trace-cmd
version=3.2
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=62af2c6062eeb434925921bb5936774b0a0e17a5f86671fa2ea2f40704a080cd
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
}
}