diff --git a/packages/espeak/build.sh b/packages/espeak/build.sh index 2dd70d6cf..561bebe27 100644 --- a/packages/espeak/build.sh +++ b/packages/espeak/build.sh @@ -5,11 +5,11 @@ TERMUX_PKG_LICENSE="GPL-2.0" # See https://github.com/espeak-ng/espeak-ng/issues/180 # about cross compilation of espeak-ng. TERMUX_PKG_VERSION=1.49.2 -TERMUX_PKG_REVISION=2 +TERMUX_PKG_REVISION=3 +TERMUX_PKG_SRCURL=https://github.com/espeak-ng/espeak-ng/releases/download/${TERMUX_PKG_VERSION}/espeak-ng-${TERMUX_PKG_VERSION}.tar.gz TERMUX_PKG_SHA256=cf7ed86850b99bafe819548c73a6651a74300980dd15f319ff22e2bd72ea20b4 TERMUX_PKG_BREAKS="espeak-dev" TERMUX_PKG_REPLACES="espeak-dev" -TERMUX_PKG_SRCURL=https://github.com/espeak-ng/espeak-ng/releases/download/${TERMUX_PKG_VERSION}/espeak-ng-${TERMUX_PKG_VERSION}.tar.gz TERMUX_PKG_BUILD_IN_SRC=true TERMUX_PKG_HOSTBUILD=true TERMUX_PKG_RM_AFTER_INSTALL="lib/*ng-test*" @@ -40,6 +40,11 @@ termux_step_host_build() { make install } +termux_step_pre_configure() { + # Oz flag causes problems. See https://github.com/termux/termux-packages/issues/1680: + CFLAGS=${CFLAGS/Oz/Os} +} + termux_step_make() { # Prevent caching of host build: rm -Rf $TERMUX_PKG_HOSTBUILD_DIR