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
7 TERMUX_PKG_SHA256
=cf7ed86850b99bafe819548c73a6651a74300980dd15f319ff22e2bd72ea20b4
8 TERMUX_PKG_SRCURL
=https
://github.com
/espeak-ng
/espeak-ng
/releases
/download
/${TERMUX_PKG_VERSION}/espeak-ng-
${TERMUX_PKG_VERSION}.
tar.gz
9 TERMUX_PKG_BUILD_IN_SRC
=yes
10 TERMUX_PKG_HOSTBUILD
=yes
11 TERMUX_PKG_RM_AFTER_INSTALL
="lib/*ng-test*"
12 # --without-async due to that using pthread_cancel().
13 TERMUX_PKG_EXTRA_CONFIGURE_ARGS
="--without-async"
15 termux_step_host_build
() {
16 cp -Rf
$TERMUX_PKG_SRCDIR/* .
18 .
/configure
--prefix
=$TERMUX_PREFIX
19 make -j
$TERMUX_MAKE_PROCESSES src
/{e
,}speak-ng
21 # Man pages require the ronn ruby program.
23 #cp src/espeak-ng.1 $TERMUX_PREFIX/share/man/man1
24 #(cd $TERMUX_PREFIX/share/man/man1 && ln -s -f espeak-ng.1 espeak.1)
30 # Prevent caching of host build:
31 rm -Rf
$TERMUX_PKG_HOSTBUILD_DIR
32 make -j
$TERMUX_MAKE_PROCESSES src
/{e
,}speak-ng
35 termux_step_make_install
() {
36 rm $TERMUX_PREFIX/bin
/{e
,}speak
{,-ng
}
37 cp src
/.libs
/espeak-ng
$TERMUX_PREFIX/bin
/espeak
38 cp src
/.libs
/libespeak-ng.so
$TERMUX_PREFIX/lib
/libespeak-ng.so
.1.1.49