33 lines
916 B
Bash
33 lines
916 B
Bash
# Template file for 'strace'
|
|
pkgname=strace
|
|
version=4.21
|
|
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>"
|
|
homepage="http://sourceforge.net/projects/strace"
|
|
license="BSD"
|
|
distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.xz"
|
|
checksum=5c7688db44073e94c59a5627744e5699454419824cc8166e8bcfd7ec58375c37
|
|
|
|
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
|
|
}
|