diff --git a/packages/jbig2dec/build.sh b/packages/jbig2dec/build.sh index 27bb0ac96..8173b8520 100644 --- a/packages/jbig2dec/build.sh +++ b/packages/jbig2dec/build.sh @@ -8,4 +8,7 @@ TERMUX_PKG_SHA256=9e19775237350e299c422b7b91b0c045e90ffa4ba66abf28c8fb5eb005772f TERMUX_PKG_DEPENDS="libpng" TERMUX_PKG_BREAKS="jbig2dec-dev" TERMUX_PKG_REPLACES="jbig2dec-dev" -TERMUX_PKG_BUILD_IN_SRC=true + +termux_step_pre_configure() { + ./autogen.sh +} diff --git a/packages/jbig2dec/no-auto-configure.patch b/packages/jbig2dec/no-auto-configure.patch new file mode 100644 index 000000000..d72f83441 --- /dev/null +++ b/packages/jbig2dec/no-auto-configure.patch @@ -0,0 +1,16 @@ +diff -uNr jbig2dec-0.18/autogen.sh jbig2dec-0.18.mod/autogen.sh +--- jbig2dec-0.18/autogen.sh 2020-03-12 14:26:37.000000000 +0200 ++++ jbig2dec-0.18.mod/autogen.sh 2020-04-05 21:53:20.165790568 +0300 +@@ -169,12 +169,3 @@ + + echo " autoconf" + autoconf +- +-if test -z "$*"; then +- echo "I am going to run ./configure with no arguments - if you wish " +- echo "to pass any to it, please specify them on the $0 command line." +-else +- echo "running ./configure $@" +-fi +- +-$srcdir/configure "$@" && echo