void-packages/srcpkgs/systemtap/template

36 lines
1.0 KiB
Bash

# Template file for 'systemtap'
pkgname=systemtap
version=4.9
revision=1
build_style=gnu-configure
hostmakedepends="python3"
makedepends="elfutils-devel"
depends="python3"
short_desc="Infrastructure to simplify the gathering of information"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="https://sourceware.org/systemtap/"
distfiles="https://sourceware.org/pub/systemtap/releases/systemtap-${version}.tar.gz"
checksum=d01033baea9d0af52a65e70167816931f4b856427a53ff2ab30e4b45f6ad3a98
python_version=3
CFLAGS=-Wno-error
if [ "$XBPS_TARGET_LIBC" = musl ]; then
makedepends+=" musl-obstack-devel"
CFLAGS+=" -DFNM_EXTMATCH=0"
CFLAGS+=" -DFTW_ACTIONRETVAL=16 -DFTW_CONTINUE=0 -DFTW_SKIP_SUBTREE=2"
CFLAGS+=" -D__off_t=off_t -D__uint32_t=uint32_t -D__uint64_t=uint64_t"
CXXFLAGS=-fpermissive
fi
CXXFLAGS+=" $CFLAGS"
systemtap-devel_package() {
depends="systemtap-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/share/man/man3
}
}