void-packages/srcpkgs/strace/template

26 lines
734 B
Bash

# Template file for 'strace'
pkgname=strace
version=4.10
revision=3
build_pie=yes
build_style=gnu-configure
configure_args="--enable-libunwind"
makedepends="libunwind-devel"
short_desc="A System Call Tracer"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://sourceforge.net/projects/strace"
license="BSD"
distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.xz"
checksum=e6180d866ef9e76586b96e2ece2bfeeb3aa23f5cc88153f76e9caedd65e40ee2
case "$XBPS_TARGET_MACHINE" in
aarch64*) configure_args=; makedepends= ;;
esac
pre_configure() {
sed -i -e 's/include <linux\/socket.h>/include <sys\/socket.h>/g' configure
case "$XBPS_TARGET_MACHINE" in
*-musl) export CFLAGS+=" -Dsigcontext_struct=sigcontext";;
esac
}