[arch-commits] Commit in (8 files)
Andrea Scarpino
andrea at nymeria.archlinux.org
Tue Jan 29 09:12:49 UTC 2013
Date: Tuesday, January 29, 2013 @ 10:12:48
Author: andrea
Revision: 83300
Move espeakup from AUR
Added:
espeakup/
espeakup/repos/
espeakup/trunk/
espeakup/trunk/PKGBUILD
espeakup/trunk/espeakup
espeakup/trunk/espeakup.conf.d
espeakup/trunk/espeakup.modules-load.d
espeakup/trunk/espeakup.service
-------------------------+
PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++
espeakup | 43 +++++++++++++++++++++++++++++++++++++++++++
espeakup.conf.d | 6 ++++++
espeakup.modules-load.d | 1 +
espeakup.service | 15 +++++++++++++++
5 files changed, 101 insertions(+)
Added: espeakup/trunk/PKGBUILD
===================================================================
--- espeakup/trunk/PKGBUILD (rev 0)
+++ espeakup/trunk/PKGBUILD 2013-01-29 09:12:48 UTC (rev 83300)
@@ -0,0 +1,36 @@
+# $Id$
+# Maintainer: Chris Brannon <chris at the-brannons.com>
+# Contributor: Kyle <kyle at gmx.ca>
+
+pkgname=espeakup
+pkgver=0.71
+pkgrel=7
+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"
+# temporary location
+source=("http://the-brannons.com/espeakup-0.71.tar.bz2"
+ espeakup espeakup.conf.d espeakup.service espeakup.modules-load.d)
+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"
+ install -m644 -D "${srcdir}/espeakup.modules-load.d" "${pkgdir}/usr/lib/modules-load.d/espeakup.conf"
+}
+md5sums=('03daa70b3db3f4f6fbb42c2ee428eda7'
+ '7cf0abd493710ed924b7bb7c8d279fb3'
+ '0f93974845b15efa12f5e7a74cc0eecd'
+ '2c80525983a700d3763d4c90c3ab79a8'
+ '75eb512d510d6701b6f63390475dd34f')
Added: espeakup/trunk/espeakup
===================================================================
--- espeakup/trunk/espeakup (rev 0)
+++ espeakup/trunk/espeakup 2013-01-29 09:12:48 UTC (rev 83300)
@@ -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
Added: espeakup/trunk/espeakup.conf.d
===================================================================
--- espeakup/trunk/espeakup.conf.d (rev 0)
+++ espeakup/trunk/espeakup.conf.d 2013-01-29 09:12:48 UTC (rev 83300)
@@ -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=""
Added: espeakup/trunk/espeakup.modules-load.d
===================================================================
--- espeakup/trunk/espeakup.modules-load.d (rev 0)
+++ espeakup/trunk/espeakup.modules-load.d 2013-01-29 09:12:48 UTC (rev 83300)
@@ -0,0 +1 @@
+speakup_soft
Added: espeakup/trunk/espeakup.service
===================================================================
--- espeakup/trunk/espeakup.service (rev 0)
+++ espeakup/trunk/espeakup.service 2013-01-29 09:12:48 UTC (rev 83300)
@@ -0,0 +1,15 @@
+[Unit]
+Description=Software speech output for Speakup
+# espeakup needs to start after the audio devices appear, hopefully this should go away in the future
+Wants=systemd-udev-settle.service
+After=systemd-udev-settle.service sound.target
+
+[Service]
+Type=forking
+PIDFile=/run/espeakup.pid
+ExecStart=/usr/bin/espeakup
+ExecReload=/bin/kill -HUP $MAINPID
+Restart=always
+
+[Install]
+WantedBy=sound.target
More information about the arch-commits
mailing list