diff options
Diffstat (limited to 'community-testing/espeakup')
-rw-r--r-- | community-testing/espeakup/PKGBUILD | 31 | ||||
-rw-r--r-- | community-testing/espeakup/espeakup | 43 | ||||
-rw-r--r-- | community-testing/espeakup/espeakup.conf.d | 6 | ||||
-rw-r--r-- | community-testing/espeakup/espeakup.service | 12 |
4 files changed, 92 insertions, 0 deletions
diff --git a/community-testing/espeakup/PKGBUILD b/community-testing/espeakup/PKGBUILD new file mode 100644 index 000000000..9ee2d9962 --- /dev/null +++ b/community-testing/espeakup/PKGBUILD @@ -0,0 +1,31 @@ +# $Id: PKGBUILD 78549 2012-10-20 19:23:23Z tomegun $ +# Contributor: Chris Brannon <chris@the-brannons.com> +# Contributor: Kyle <kyle@gmx.ca> +pkgname=espeakup +pkgver=0.71 +pkgrel=5 +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 espeakup.service) +depends=(speakup-utils espeak) +backup=(etc/conf.d/espeakup) + +build() { + cd "$srcdir/$pkgname-$pkgver" + make +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + make DESTDIR="${pkgdir}" install + install -m755 -D "${srcdir}/espeakup" "${pkgdir}/etc/rc.d/espeakup" + install -m644 -D "${srcdir}/espeakup.conf.d" "${pkgdir}/etc/conf.d/espeakup" + install -m644 -D "${srcdir}/espeakup.service" "${pkgdir}/usr/lib/systemd/system/espeakup.service" +} +md5sums=('03daa70b3db3f4f6fbb42c2ee428eda7' + '7cf0abd493710ed924b7bb7c8d279fb3' + '0f93974845b15efa12f5e7a74cc0eecd' + '0c11c50b128234cda8e1357e88cf7c43') diff --git a/community-testing/espeakup/espeakup b/community-testing/espeakup/espeakup new file mode 100644 index 000000000..94a71701a --- /dev/null +++ b/community-testing/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-testing/espeakup/espeakup.conf.d b/community-testing/espeakup/espeakup.conf.d new file mode 100644 index 000000000..66f7842c3 --- /dev/null +++ b/community-testing/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="" diff --git a/community-testing/espeakup/espeakup.service b/community-testing/espeakup/espeakup.service new file mode 100644 index 000000000..58d7d47fa --- /dev/null +++ b/community-testing/espeakup/espeakup.service @@ -0,0 +1,12 @@ +[Unit] +Description=Software speech output for Speakup + +[Service] +Type=forking +PIDFile=/run/espeakup.pid +ExecStart=/usr/bin/espeakup +ExecReload=/bin/kill -HUP $MAINPID +Restart=always + +[Install] +WantedBy=multi-user.target |