void-packages/srcpkgs/strace/template

33 lines
939 B
Bash

# Template file for 'strace'
pkgname=strace
version=4.24
revision=1
build_style=gnu-configure
configure_args="--with-libunwind"
makedepends="libunwind-devel"
short_desc="A System Call Tracer"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="BSD-3-Clause"
homepage="https://strace.io/"
distfiles="https://github.com/strace/strace/releases/download/v${version}/strace-${version}.tar.xz"
checksum=1f4e59fc1edfa2bfb4adf2a748623dc25b105ec79713dd84404199f91b0b0634
case "$XBPS_TARGET_MACHINE" in
aarch64-musl) configure_args=; makedepends= ;;
esac
case "$XBPS_TARGET_MACHINE" in
aarch64*) configure_args+=" --enable-mpers=no"
esac
pre_configure() {
sed -i -e 's/include <linux\/socket.h>/include <sys\/socket.h>/g' configure
sed -i -e 's/include <sgidefs.h>/include <asm\/sgidefs.h>/g' configure
case "$XBPS_TARGET_MACHINE" in
*-musl) export CFLAGS+=" -Dsigcontext_struct=sigcontext";;
esac
}
post_install() {
vlicense COPYING
}