1 TERMUX_PKG_HOMEPAGE
=https
://github.com
/espeak-ng
/espeak-ng
2 TERMUX_PKG_DESCRIPTION
="Compact software speech synthesizer"
3 # Use eSpeak NG as the original eSpeak project is dead.
4 # See https://github.com/espeak-ng/espeak-ng/issues/180
5 # about cross compilation of espeak-ng.
6 TERMUX_PKG_VERSION
=1.49.2
8 TERMUX_PKG_SHA256
=cf7ed86850b99bafe819548c73a6651a74300980dd15f319ff22e2bd72ea20b4
9 TERMUX_PKG_SRCURL
=https
://github.com
/espeak-ng
/espeak-ng
/releases
/download
/${TERMUX_PKG_VERSION}/espeak-ng-
${TERMUX_PKG_VERSION}.
tar.gz
10 TERMUX_PKG_BUILD_IN_SRC
=yes
11 TERMUX_PKG_HOSTBUILD
=yes
12 TERMUX_PKG_RM_AFTER_INSTALL
="lib/*ng-test*"
13 # --without-async due to that using pthread_cancel().
14 TERMUX_PKG_EXTRA_CONFIGURE_ARGS
="--without-async"
16 termux_step_host_build
() {
17 cp -Rf
$TERMUX_PKG_SRCDIR/* .
19 .
/configure
--prefix
=$TERMUX_PREFIX
20 make -j
$TERMUX_MAKE_PROCESSES src
/{e
,}speak-ng
22 # Man pages require the ronn ruby program.
24 #cp src/espeak-ng.1 $TERMUX_PREFIX/share/man/man1
25 #(cd $TERMUX_PREFIX/share/man/man1 && ln -s -f espeak-ng.1 espeak.1)
31 # Prevent caching of host build:
32 rm -Rf
$TERMUX_PKG_HOSTBUILD_DIR
33 make -j
$TERMUX_MAKE_PROCESSES src
/{e
,}speak-ng
36 termux_step_make_install
() {
37 rm $TERMUX_PREFIX/bin
/{e
,}speak
{,-ng
}
38 cp src
/.libs
/espeak-ng
$TERMUX_PREFIX/bin
/espeak
39 cp src
/.libs
/libespeak-ng.so
$TERMUX_PREFIX/lib
/libespeak-ng.so
.1.1.49