43 lines
1.2 KiB
Bash
43 lines
1.2 KiB
Bash
# Template file for 'libtracefs'
|
|
pkgname=libtracefs
|
|
version=1.8.1
|
|
revision=1
|
|
build_style=gnu-makefile
|
|
make_build_args="libdir_relative=lib${XBPS_TARGET_WORDSIZE}"
|
|
make_build_target="all doc"
|
|
make_install_args="$make_build_args pkgconfig_dir=/usr/lib/pkgconfig"
|
|
make_install_target="install install_doc"
|
|
make_use_env=yes
|
|
hostmakedepends="asciidoc xmlto source-highlight pkg-config"
|
|
makedepends="libtraceevent-devel"
|
|
checkdepends="CUnit-devel"
|
|
short_desc="Linux kernel trace file system library"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-2.0-only, LGPL-2.1-only"
|
|
homepage="https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/"
|
|
distfiles="https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/snapshot/libtracefs-${version}.tar.gz"
|
|
checksum=d295aa20d711c313a9e229dbd15ba14026f0c1a50d57ae8b0823cc561b23745f
|
|
|
|
do_check() {
|
|
make ${makejobs} test
|
|
utest/trace-utest
|
|
}
|
|
|
|
post_install() {
|
|
# manpage for sample program
|
|
rm ${DESTDIR}/usr/share/man/man1/sqlhist.1
|
|
}
|
|
|
|
libtracefs-devel_package() {
|
|
depends="${sourcepkg}>=${version}_${revision} ${makedepends}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/share/doc
|
|
vmove usr/share/man/man3
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|