void-packages/srcpkgs/ltrace/template
Christian Neukirchen 06327a221b ltrace: update to 0.7.3.20160924.
Move to Git snapshot, no upstream release in 3 years and we want
AArch64 support.
2016-09-24 18:24:55 +02:00

30 lines
920 B
Bash

# Template file for 'ltrace'
pkgname=ltrace
version=0.7.3.20160924
revision=1
_githash=82c66409c7a93ca6ad2e4563ef030dfb7e6df4d4
wrksrc="${pkgname}-${_githash}"
build_style=gnu-configure
hostmakedepends="automake libtool"
makedepends="elfutils-devel"
short_desc="Tracks runtime library calls in dynamically linked programs"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://ltrace.org"
license="GPL-2"
distfiles="https://github.com/dkogan/ltrace/archive/${_githash}.tar.gz"
checksum=4aecf69e4a33331aed1e50ce4907e73a98cbccc4835febc3473863474304d547
CFLAGS="-Wno-error -D_GNU_SOURCE"
pre_configure() {
case "$XBPS_TARGET_MACHINE" in
*-musl)
sed -i '/HOST_OS/s/linux-uclibc/linux-musl/g' configure.ac
sed -i 's/REG_NOERROR/0/g' options.c glob.c
sed -i -e '/error.h/d' -e 's/error(1, errno/err(1/' \
read_config_file.c expr.c zero.c
sed -i '1i#include <sys/types.h>' proc.h
esac
autoreconf -fi
}