29 lines
920 B
Bash
29 lines
920 B
Bash
# Template file for 'strace'
|
|
pkgname=strace
|
|
version=5.5
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--with-libunwind"
|
|
makedepends="libunwind-devel"
|
|
short_desc="System Call Tracer"
|
|
maintainer="Anthony Iliopoulos <ailiop@altatus.com>"
|
|
license="LGPL-2.1-or-later"
|
|
homepage="https://strace.io/"
|
|
distfiles="https://github.com/strace/strace/releases/download/v${version}/strace-${version}.tar.xz"
|
|
checksum=9f58958c8e59ea62293d907d10572e352b582bd7948ed21aa28ebb47e5bf30ff
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
aarch64-musl) configure_args=; makedepends= ;;
|
|
esac
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
aarch64*|ppc64*) 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
|
|
}
|