void-packages/srcpkgs/trace-cmd/template

44 lines
1.3 KiB
Bash

# Template file for 'trace-cmd'
pkgname=trace-cmd
version=3.1.5
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"
checkdepends="CUnit-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=9af1ea00e312d03639470e126fa9c786789f03c16df93a57c0bc90eeffbc7d50
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
}
}