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