diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-02-10 03:34:10 +0000 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-02-10 03:34:10 +0000 |
commit | ffe0bbfd85b1341f3b15f809ea92f330d2f7cea3 (patch) | |
tree | cdffed6dff9284dc6ea35a558ec820639918e6cd /extra/festival/PKGBUILD | |
parent | 22a7afa9198d103fd181636ffff9ded8e066e2e2 (diff) |
Mon Feb 10 03:32:23 UTC 2014
Diffstat (limited to 'extra/festival/PKGBUILD')
-rw-r--r-- | extra/festival/PKGBUILD | 60 |
1 files changed, 33 insertions, 27 deletions
diff --git a/extra/festival/PKGBUILD b/extra/festival/PKGBUILD index 1124eb914..53a7bde44 100644 --- a/extra/festival/PKGBUILD +++ b/extra/festival/PKGBUILD @@ -1,26 +1,27 @@ -# $Id: PKGBUILD 137968 2011-09-13 09:17:12Z eric $ +# $Id: PKGBUILD 205607 2014-02-09 10:29:39Z andyrtr $ # Maintainer: # Contributor: Andrea Scarpino <andrea@archlinux.org> # Contributor: Simo Leone <neotuli@gmail.com> pkgname=festival pkgver=2.1 -_suffix=release -pkgrel=3 +pkgrel=4 pkgdesc="A general multi-lingual speech synthesis system" arch=('i686' 'x86_64') url="http://www.cstr.ed.ac.uk/projects/festival/" license=('BSD' 'GPL' 'custom') depends=('perl') options=('!makeflags') -source=("http://www.cstr.ed.ac.uk/downloads/${pkgname}/${pkgver}/${pkgname}-${pkgver}-${_suffix}.tar.gz" - "http://www.cstr.ed.ac.uk/downloads/${pkgname}/${pkgver}/speech_tools-${pkgver}-${_suffix}.tar.gz" - "http://www.cstr.ed.ac.uk/downloads/${pkgname}/${pkgver}/festlex_CMU.tar.gz" - "http://www.cstr.ed.ac.uk/downloads/${pkgname}/${pkgver}/festlex_OALD.tar.gz" - "http://www.cstr.ed.ac.uk/downloads/${pkgname}/${pkgver}/festlex_POSLEX.tar.gz" - 'speechconfig.patch' - 'festconfig.patch' - 'festival-shared-build.patch') +source=(http://www.cstr.ed.ac.uk/downloads/${pkgname}/${pkgver}/${pkgname}-${pkgver}-release.tar.gz + http://www.cstr.ed.ac.uk/downloads/${pkgname}/${pkgver}/speech_tools-${pkgver}-release.tar.gz + http://www.cstr.ed.ac.uk/downloads/${pkgname}/${pkgver}/festlex_CMU.tar.gz + http://www.cstr.ed.ac.uk/downloads/${pkgname}/${pkgver}/festlex_OALD.tar.gz + http://www.cstr.ed.ac.uk/downloads/${pkgname}/${pkgver}/festlex_POSLEX.tar.gz + speechconfig.patch + festconfig.patch + festival-shared-build.patch + festival.gcc47.patch + festival-2.1-bettersonamehack.patch) md5sums=('c93eb3e389ed171ab9abd46afe8897a8' '6920ddc75b042910a3bcfee3ab106938' '6a2ee4fed7c3ebedf197a3b8524ccb87' @@ -28,31 +29,38 @@ md5sums=('c93eb3e389ed171ab9abd46afe8897a8' 'aa80f9250065b318325f16fdad3a4484' 'c30ae990baca40c9c2b1d5cd27502139' '348cc033430aee7989463198818ae74c' - '46132b1cd86a982007312def49ab176a') + '02f589688182527308e3fe8d1a82c056' + 'ed738fdf981aaddbae6d00c3a0120d62' + '85367db2b57bae214d1032e2fc896753') + +prepare() { + cd $srcdir + patch -Np0 -i ${srcdir}/speechconfig.patch + patch -Np0 -i ${srcdir}/festconfig.patch + + # fix build with new gcc versions and build shared libs - taken from Mageia + patch -Np0 -i ${srcdir}/festival-shared-build.patch + patch -Np0 -i ${srcdir}/festival-2.1-bettersonamehack.patch + patch -Np0 -i ${srcdir}/festival.gcc47.patch + + # Avoid make failure on making scripts and docs + sed -i "s#examples bin doc#examples#" festival/Makefile +} build() { - cd "$srcdir" - patch -Np0 -i "$srcdir/festival-shared-build.patch" - # Build Speech Tools first cd "$srcdir/speech_tools" - patch -Np1 -i "$srcdir/speechconfig.patch" ./configure --prefix=/usr --sysconfdir=/etc - make OPTIMISE_CXXFLAGS="${CXXFLAGS}" OPTIMISE_CCFLAGS="${CFLAGS}" + make OPTIMISE_CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing" OPTIMISE_CCFLAGS="${CFLAGS} -fno-strict-aliasing" # Build Festival itself cd "$srcdir/festival" - patch -Np1 -i "$srcdir/festconfig.patch" - - # Avoid make failure on making scripts and docs - sed -i "s#examples bin doc#examples#" Makefile - ./configure --prefix=/usr --sysconfdir=/etc make OPTIMISE_CXXFLAGS="${CXXFLAGS}" OPTIMISE_CCFLAGS="${CFLAGS}" } package() { - # Install Speech Tools first + # Install Speech Tools first cd "$srcdir/speech_tools" install -dm755 "$pkgdir"/usr/{bin,lib,include/speech_tools/{,instantiate,ling_class,rxp,sigpr,unix}} @@ -69,7 +77,6 @@ package() { ln -sf libestbase.so.${pkgver}.1 "$pkgdir"/usr/lib/libestbase.so ln -sf libestools.so.${pkgver}.1 "$pkgdir"/usr/lib/libestools.so ln -sf libeststring.so.1.2 "$pkgdir"/usr/lib/libeststring.so - install -m644 -t "$pkgdir"/usr/lib lib/lib*.a #headers for dir in {.,instantiate,ling_class,rxp,sigpr,unix}; do @@ -95,7 +102,6 @@ package() { install -m755 examples/text2wave "$pkgdir"/usr/bin #libraries - install -m644 src/lib/libFestival.a "$pkgdir"/usr/lib/ install -m755 src/lib/libFestival.so.* "$pkgdir"/usr/lib/ ln -sf libFestival.so.2.1.0 "$pkgdir"/usr/lib/libFestival.so @@ -105,8 +111,8 @@ package() { mkdir -p "$pkgdir"/usr/share/festival cp -aR lib/* "$pkgdir"/usr/share/festival - rm -f $(find "$pkgdir"/usr/share/festival -name Makefile) - rm -f $(find "$pkgdir"/usr/bin -name Makefile) + rm -fv $(find "$pkgdir"/usr/share/festival -name Makefile) + rm -fv $(find "$pkgdir"/usr/bin -name Makefile) #create voices directory install -dm755 "$pkgdir"/usr/share/festival/voices |