void-packages/srcpkgs/strace/template
2015-11-17 16:47:19 +01:00

24 lines
720 B
Bash

# Template file for 'strace'
pkgname=strace
version=4.10
revision=3
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
}