espeak: fix narrowing error and template style

This commit is contained in:
maxice8 2018-12-31 14:16:46 -02:00 committed by maxice8
parent 8a303c5ef7
commit fa07f65de4
2 changed files with 26 additions and 17 deletions

View File

@ -0,0 +1,12 @@
--- src/tr_languages.cpp
+++ src/tr_languages.cpp
@@ -198,7 +198,7 @@ static const unsigned short chars_ignore
0x200d, 1, // zero width joiner
0, 0 };
-const char string_ordinal[] = {0xc2,0xba,0}; // masculine ordinal character, UTF-8
+const char string_ordinal[] = {(char)0xc2,(char)0xba,0}; // masculine ordinal character, UTF-8
static Translator* NewTranslator(void)

View File

@ -1,26 +1,23 @@
# Template file for 'espeak'
pkgname="espeak"
version="1.48.04"
revision=4
short_desc="Text to Speech engine"
maintainer="Martin Riese <grauehaare@gmx.de>"
license="GPL-3"
homepage="http://espeak.sourceforge.net"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}-source.zip"
pkgname=espeak
version=1.48.04
revision=5
wrksrc="${pkgname}-${version}-source"
build_wrksrc=src
build_style=gnu-makefile
hostmakedepends="unzip"
makedepends="pulseaudio-devel portaudio-devel"
wrksrc="${pkgname}-${version}-source"
build_wrksrc="src"
checksum="bf9a17673adffcc28ff7ea18764f06136547e97bbd9edf2ec612f09b207f0659"
build_style="gnu-makefile"
if [ ${XBPS_GCC_VERSION_MAJOR} -gt 5 ]; then
CXXFLAGS="-Wno-error=narrowing"
fi
short_desc="Text to Speech engine"
maintainer="Martin Riese <grauehaare@gmx.de>"
license="GPL-3.0-or-later"
homepage="http://espeak.sourceforge.net"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}-source.zip"
checksum=bf9a17673adffcc28ff7ea18764f06136547e97bbd9edf2ec612f09b207f0659
pre_configure() {
cp portaudio19.h portaudio.h
}
do_build() {
make CXX=$CXX CXXFLAGS="$CXXFLAGS" AUDIO=runtime
}
@ -37,7 +34,7 @@ libespeak-devel_package() {
depends="${makedepends} libespeak>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove "usr/include"
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}