0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-09-21 18:39:37 +00:00
Files
termux-packages/packages/bgrep/build.sh
Robert Kirkman f55833a1ea fix(main/bgrep): fix build in 2025
this software's build system, by default, clones the newest possible commit of gnulib, and then uses that during the build process.
440164692a/bootstrap (L638)

that had been working up until recently, when the package began failing to build because of some changes entering the gnulib repository related to the `strcasecmp()` function.
b2927d1b1f

That is not handled by the current version of `termux_step_configure_autotools()`, so an error began appearing, `configure: error: cannot run test program while cross compiling`.
c2f2312c08/scripts/build/configure/termux_step_configure_autotools.sh (L46-L101)

As far as I am aware, `strcasecmp()` has always worked OK in bionic libc, so since this change works to prevent the build error, it seems like a reasonable way to proceed to me.
2025-03-01 07:35:26 -06:00

20 lines
615 B
Bash

TERMUX_PKG_HOMEPAGE=https://debugmo.de/2009/04/bgrep-a-binary-grep/
TERMUX_PKG_DESCRIPTION="Binary string grep tool"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=1.0
TERMUX_PKG_REVISION=4
TERMUX_PKG_SRCURL=https://github.com/rsharo/bgrep/archive/bgrep-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=ba5ddae672e84bf2d8ce91429a4ce8a5e3a154ee7e64d1016420f7dc7481ec0a
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_UPDATE_VERSION_REGEXP="\d+\.\d+"
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
gl_cv_func_strcasecmp_works=yes
"
termux_step_pre_configure() {
./bootstrap
}