void-packages/srcpkgs/strace/template
2018-06-02 16:04:38 +02:00

32 lines
939 B
Bash

# Template file for 'strace'
pkgname=strace
version=4.22
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="https://strace.io/"
license="BSD-3-Clause"
distfiles="https://github.com/strace/strace/releases/download/v${version}/strace-${version}.tar.xz"
checksum=068cd09264c95e4d591bbcd3ea08f99a693ed8663cd5169b0fdad72eb5bdb39d
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
}