termux-packages/packages/strace/build.sh

28 lines
1.0 KiB
Bash
Raw Normal View History

2017-01-15 19:40:49 +01:00
TERMUX_PKG_HOMEPAGE=https://strace.io/
2018-07-11 10:35:45 +02:00
TERMUX_PKG_DESCRIPTION="Debugging utility to monitor system calls and signals received"
2022-03-28 20:37:22 +02:00
TERMUX_PKG_LICENSE="LGPL-2.1"
TERMUX_PKG_LICENSE_FILE="COPYING, LGPL-2.1-or-later"
TERMUX_PKG_MAINTAINER="@termux"
2022-03-28 20:37:22 +02:00
TERMUX_PKG_VERSION=5.17
2018-10-14 20:30:16 +02:00
TERMUX_PKG_SRCURL=https://github.com/strace/strace/releases/download/v$TERMUX_PKG_VERSION/strace-$TERMUX_PKG_VERSION.tar.xz
2022-03-28 20:37:22 +02:00
TERMUX_PKG_SHA256=5fb298dbd1331fd1e1bc94c5c32395860d376101b87c6cd3d1ba9f9aa15c161f
TERMUX_PKG_AUTO_UPDATE=true
2020-06-21 20:07:03 +02:00
TERMUX_PKG_DEPENDS="libdw"
2018-05-19 02:57:29 +02:00
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
2020-06-21 20:07:03 +02:00
--with-libdw
2018-05-19 02:57:29 +02:00
"
2020-06-21 20:07:03 +02:00
# This is a perl script.
TERMUX_PKG_RM_AFTER_INSTALL="bin/strace-graph"
termux_step_pre_configure() {
2022-01-16 04:23:51 +01:00
if [ "$TERMUX_ARCH" = "arm" ] || [ "$TERMUX_ARCH" = "i686" ] || [ "$TERMUX_ARCH" = "x86_64" ]; then
# Without st_cv_m32_mpers=no the build fails if gawk is installed.
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" st_cv_m32_mpers=no"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --enable-mpers=no"
fi
autoreconf # for configure.ac in configure-find-armv7-cc.patch
2022-01-16 04:20:37 +01:00
CPPFLAGS+=" -Dfputs_unlocked=fputs"
}