From ce253c2d84095ec513ae18f27afeefce02708c7d Mon Sep 17 00:00:00 2001 From: Leonid Plyushch Date: Mon, 15 Apr 2019 00:59:45 +0300 Subject: [PATCH] bat: fix build error where zlib.h was not found --- packages/bat/build.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/bat/build.sh b/packages/bat/build.sh index fa2e0675f..a02a13d50 100644 --- a/packages/bat/build.sh +++ b/packages/bat/build.sh @@ -9,6 +9,10 @@ TERMUX_PKG_SRCURL=https://github.com/sharkdp/bat/archive/v$TERMUX_PKG_VERSION.ta TERMUX_PKG_DEPENDS="less, zlib" TERMUX_PKG_BUILD_IN_SRC=yes +termux_step_pre_configure() { + CFLAGS="$CFLAGS $CPPFLAGS" +} + termux_step_post_make_install() { mkdir -p $TERMUX_PREFIX/share/man/man1 cp $TERMUX_PKG_SRCDIR/doc/bat.1 $TERMUX_PREFIX/share/man/man1/