void-packages/srcpkgs/gperftools/template

33 lines
1.1 KiB
Bash

# Template build file for 'gperftools'
pkgname=gperftools
version=2.6.3
revision=2
build_style=gnu-configure
checkdepends="perl"
short_desc="Multi-threaded malloc() and performance analysis tools"
maintainer="Enno Boland <gottox@voidlinux.eu>"
license="3-clause-BSD"
homepage="https://github.com/gperftools/gperftools"
distfiles="https://github.com/${pkgname}/${pkgname}/releases/download/${pkgname}-${version}/${pkgname}-${version}.tar.gz"
checksum=314b2ff6ed95cc0763704efb4fb72d0139e1c381069b9e17a619006bee8eee9f
makedepends="libunwind-devel"
provides="gperftools-devel-${version}_${revision}"
replaces="gperftools-devel>=0"
case "$XBPS_TARGET_MACHINE" in
arm*-musl|aarch64-musl)
makedepends=
configure_args="--disable-libunwind"
# benchmark/getcontext_light.cc:57: undefined reference to 'getcontext'
broken=https://build.voidlinux.eu/builders/armv6l-musl_builder/builds/3743/steps/shell_3/logs/stdio
esac
post_extract() {
sed -i -e 's/__off64_t/off64_t/' \
src/base/linux_syscall_support.h src/malloc_hook_mmap_linux.h
}
post_install() {
vlicense COPYING
rm -rf ${DESTDIR}/usr/share/doc
}