From 415856bdd4f48ab4f2732996f0bae58595092bbe Mon Sep 17 00:00:00 2001 From: Parabola Date: Tue, 5 Apr 2011 14:26:38 +0000 Subject: Tue Apr 5 14:26:38 UTC 2011 --- community/espeakup/PKGBUILD | 26 +++++++++++++++++++++++ community/espeakup/espeakup | 43 ++++++++++++++++++++++++++++++++++++++ community/espeakup/espeakup.conf.d | 6 ++++++ 3 files changed, 75 insertions(+) create mode 100644 community/espeakup/PKGBUILD create mode 100755 community/espeakup/espeakup create mode 100644 community/espeakup/espeakup.conf.d (limited to 'community/espeakup') diff --git a/community/espeakup/PKGBUILD b/community/espeakup/PKGBUILD new file mode 100644 index 000000000..89061f262 --- /dev/null +++ b/community/espeakup/PKGBUILD @@ -0,0 +1,26 @@ +# $Id: PKGBUILD 13306 2010-03-20 23:49:14Z cbrannon $ +# Contributor: Chris Brannon +pkgname=espeakup +pkgver=0.71 +pkgrel=3 +pkgdesc='Allows the Speakup screen review system to use the ESpeak synthesizer.' +arch=('i686' 'x86_64') +url="http://github.com/williamh/espeakup" +license=('GPL3') +source=("ftp://linux-speakup.org/pub/linux/goodies/${pkgname}-${pkgver}.tar.bz2" + espeakup espeakup.conf.d) +md5sums=('03daa70b3db3f4f6fbb42c2ee428eda7' + '7cf0abd493710ed924b7bb7c8d279fb3' + '0f93974845b15efa12f5e7a74cc0eecd') +depends=(speakup-utils espeak) +backup=(etc/conf.d/espeakup) + +build() { + cd "$srcdir" + install -m755 -D espeakup "${pkgdir}/etc/rc.d/espeakup" || return 1 + install -m644 -D espeakup.conf.d "${pkgdir}/etc/conf.d/espeakup" || return 1 + cd "$srcdir/$pkgname-$pkgver" + + make || return 1 + make DESTDIR="${pkgdir}" install || return 1 +} diff --git a/community/espeakup/espeakup b/community/espeakup/espeakup new file mode 100755 index 000000000..94a71701a --- /dev/null +++ b/community/espeakup/espeakup @@ -0,0 +1,43 @@ +#!/bin/bash + +. /etc/rc.conf +. /etc/conf.d/espeakup +. /etc/rc.d/functions + +PID=`pidof espeakup` +PIDFILE=/var/run/espeakup.pid +case "$1" in + start) + stat_busy "Starting Espeakup" + if [ -z "$PID" ]; then + if [ -f $PIDFILE ]; then + rm $PIDFILE + fi + /usr/bin/espeakup $ESPEAKUP_ARGS + if [ $? -gt 0 ]; then + stat_fail + else + add_daemon espeakup + stat_done + fi + fi + ;; + stop) + stat_busy "Stopping Espeakup" + [ ! -z "$PID" ] && kill $PID &> /dev/null + if [ $? -gt 0 ]; then + stat_fail + else + rm_daemon espeakup + stat_done + fi + ;; + restart) + $0 stop + sleep 2 + $0 start + ;; + *) + echo "usage: $0 {start|stop|restart}" +esac +exit 0 diff --git a/community/espeakup/espeakup.conf.d b/community/espeakup/espeakup.conf.d new file mode 100644 index 000000000..66f7842c3 --- /dev/null +++ b/community/espeakup/espeakup.conf.d @@ -0,0 +1,6 @@ +# +# Arguments to be passed to espeakup. +# Example: +# ESPEAKUP_ARGS="--default-voice=fr" +# will tell espeakup to use the French voice. +ESPEAKUP_ARGS="" -- cgit v1.2.3-54-g00ecf