32 lines
949 B
Bash
32 lines
949 B
Bash
# Template file for 'strace'
|
|
pkgname=strace
|
|
version=5.2
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--with-libunwind"
|
|
makedepends="libunwind-devel"
|
|
short_desc="System Call Tracer"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
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=d513bc085609a9afd64faf2ce71deb95b96faf46cd7bc86048bc655e4e4c24d2
|
|
|
|
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
|
|
}
|
|
post_install() {
|
|
vlicense COPYING
|
|
}
|