void-packages/srcpkgs/strace/template

29 lines
829 B
Bash

# Template file for 'strace'
pkgname=strace
version=4.13
revision=1
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=d48f732576c91ece36a5843d63f9be054c40ef59f1e4773986042636861625d7
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
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
}