Date: Thursday, November 11, 2010 @ 08:52:14 Author: andrea Revision: 98581
new kdeaccessibility-jovie dependence Added: speech-dispatcher/ speech-dispatcher/repos/ speech-dispatcher/trunk/ speech-dispatcher/trunk/PKGBUILD speech-dispatcher/trunk/speech-dispatcher.install speech-dispatcher/trunk/speechd.sh ---------------------------+ PKGBUILD | 64 ++++++++++++++++++++++++++++++++++++++++++++ speech-dispatcher.install | 21 ++++++++++++++ speechd.sh | 37 +++++++++++++++++++++++++ 3 files changed, 122 insertions(+) Added: speech-dispatcher/trunk/PKGBUILD =================================================================== --- speech-dispatcher/trunk/PKGBUILD (rev 0) +++ speech-dispatcher/trunk/PKGBUILD 2010-11-11 13:52:14 UTC (rev 98581) @@ -0,0 +1,64 @@ +# $Id$ +# Maintainer: Andrea Scarpino <[email protected]> +# Contributor: Steve Holmes <[email protected]> +# Contributor: Alexander Jenisch <[email protected]> +# Contributor: Chris Brannon <[email protected]> +# Contributor: Andreas Messer <[email protected]> + +pkgname=speech-dispatcher +pkgver=0.7.1 +pkgrel=3 +arch=('i686' 'x86_64') +pkgdesc="High-level device independent layer for speech synthesis interface" +url="http://www.freebsoft.org/speechd" +license=('GPL2' 'FDL') +depends=('glib2' 'python2' 'dotconf' 'texinfo' 'libsndfile') +makedepends=('pkgconfig' 'espeak') +optdepends=('festival: Speech output using Festival' + 'espeak: Speech output using ESpeak') +provides=("speechd=${pkgver}") +options=('!libtool') +backup=(etc/speech-dispatcher/clients/gnome-speech.conf + etc/speech-dispatcher/clients/emacs.conf + etc/speech-dispatcher/modules/ibmtts.conf + etc/speech-dispatcher/modules/espeak-generic.conf + etc/speech-dispatcher/modules/espeak.conf + etc/speech-dispatcher/modules/swift-generic.conf + etc/speech-dispatcher/modules/festival.conf + etc/speech-dispatcher/modules/cicero.conf + etc/speech-dispatcher/modules/espeak-mbrola-generic.conf + etc/speech-dispatcher/modules/dtk-generic.conf + etc/speech-dispatcher/modules/llia_phon-generic.conf + etc/speech-dispatcher/modules/ivona.conf + etc/speech-dispatcher/modules/epos-generic.conf + etc/speech-dispatcher/modules/flite.conf + etc/speech-dispatcher/speechd.conf) +install="${pkgname}.install" +source=("http://www.freebsoft.org/pub/projects/speechd/$pkgname-$pkgver.tar.gz" + 'speechd.sh') +md5sums=('ccfc30ac006673d36b4223eb760ed696' + '858293f464b83f03f3b6bb796291c71d') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --without-flite + make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make DESTDIR=${pkgdir} install + + install -Dm755 ${srcdir}/speechd.sh ${pkgdir}/etc/rc.d/speechd + install -d ${pkgdir}/var/log/speech-dispatcher + + # Fix spd-conf to use python 2.7 + sed -i -e 's|#!/usr/bin/python|#!/usr/bin/python2|' ${pkgdir}/usr/bin/spd-conf + sed -i -e 's|#!/usr/bin/env python|#!/usr/bin/env python2|' ${pkgdir}/usr/lib/python2.7/site-packages/speechd/_test.py + + rm -f ${pkgdir}/usr/share/info/dir + gzip -9nf ${pkgdir}/usr/share/info/* +} Added: speech-dispatcher/trunk/speech-dispatcher.install =================================================================== --- speech-dispatcher/trunk/speech-dispatcher.install (rev 0) +++ speech-dispatcher/trunk/speech-dispatcher.install 2010-11-11 13:52:14 UTC (rev 98581) @@ -0,0 +1,21 @@ +info_dir=/usr/share/info +info_files=('speech-dispatcher.info' + 'speech-dispatcher-cs.info' + 'ssip.info' + 'spd-say.info') + +post_install() { + for f in ${info_fil...@]}; do + install-info ${info_dir}/$f.gz ${info_dir}/dir 2> /dev/null + done +} + +post_upgrade() { + post_install +} + +pre_remove() { + for f in ${info_fil...@]}; do + install-info --delete ${info_dir}/$f.gz ${info_dir}/dir 2> /dev/null + done +} Added: speech-dispatcher/trunk/speechd.sh =================================================================== --- speech-dispatcher/trunk/speechd.sh (rev 0) +++ speech-dispatcher/trunk/speechd.sh 2010-11-11 13:52:14 UTC (rev 98581) @@ -0,0 +1,37 @@ +#!/bin/bash + +. /etc/rc.conf +. /etc/rc.d/functions + +PID=$(pidof -o %PPID /usr/bin/speech-dispatcher) +case "$1" in + start) + stat_busy "Starting speech dispatcher Daemon" + [ -z "$PID" ] && /usr/bin/speech-dispatcher -d &> /dev/null + if [ $? -gt 0 ]; then + stat_fail + else + add_daemon speechd + stat_done + fi + ;; + stop) + stat_busy "Stopping speech dispatcher Daemon" + [ ! -z "$PID" ] && kill $PID &> /dev/null + if [ $? -gt 0 ]; then + stat_fail + else + rm_daemon speechd + stat_done + fi + ;; + restart) + $0 stop + sleep 1 + $0 start + ;; + *) + echo "usage: $0 {start|stop|restart}" +esac + +exit 0
