summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorStorm Dragon2015-06-08 15:41:35 -0400
committerStorm Dragon2015-06-08 15:41:35 -0400
commit7f63fa6f90c67be8aa4d19370307e998787633f1 (patch)
tree754bd4d943f32541d6787dfb8d6af6a66adb2c40
downloadaur-7f63fa6f90c67be8aa4d19370307e998787633f1.tar.gz
Initial import.
-rw-r--r--.SRCINFO29
-rw-r--r--PKGBUILD50
-rw-r--r--espeakup-git.install20
-rw-r--r--espeakup.service16
-rw-r--r--espeakup.txt1
-rw-r--r--espeakup@.service16
-rw-r--r--speakup.conf2
-rw-r--r--speakupconf.service12
8 files changed, 146 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..06de3713933
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,29 @@
+pkgbase = espeakup-git
+ pkgdesc = allows the Speakup screen review system to use the ESpeak synthesizer
+ pkgver = v0.71.117.g4d87b22
+ pkgrel = 1
+ url = https://github.com/stormdragon2976/espeakup
+ install = espeakup-git.install
+ arch = i686
+ arch = x86_64
+ license = GPL3
+ makedepends = git
+ depends = speakup-utils
+ depends = espeak
+ provides = espeakup
+ conflicts = espeakup
+ source = git+http://github.com/stormdragon2976/espeakup.git
+ source = espeakup.service
+ source = speakupconf.service
+ source = espeakup@.service
+ source = espeakup.txt
+ source = speakup.conf
+ sha256sums = SKIP
+ sha256sums = 8d747829bd998af199d2f2e4878782d8cc33bb11920de51159362021585febbe
+ sha256sums = c1e97b20bd0dc4257d4af10999c65f238ac8fe8d70dd46c3d3524bf26be17171
+ sha256sums = 5e9c1e2f065fdc10cd15c7704d61ba479c7e7ee352e24b904c60b8fcf8bec537
+ sha256sums = b9879526368d2a258b2d0ba4b30aa12bd172e01944c91544c35321581ae2d9db
+ sha256sums = 4c39f77f682335dee0daf7d12013bdbd695c4740acead9c7414dd3189269472e
+
+pkgname = espeakup-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..829d7233a22
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,50 @@
+# Maintainer: Storm Dragon <stormdragon2976@gmail.com>
+
+_gitname='espeakup'
+pkgname="$_gitname"-git
+pkgver=v0.71.117.g4d87b22
+pkgrel=1
+pkgdesc='allows the Speakup screen review system to use the ESpeak synthesizer'
+arch=('i686' 'x86_64')
+url='https://github.com/stormdragon2976/espeakup'
+license=('GPL3')
+depends=('speakup-utils' 'espeak')
+makedepends=('git')
+provides=('espeakup')
+conflicts=('espeakup')
+install="$pkgname".install
+source=("git+http://github.com/stormdragon2976/$_gitname.git"
+ 'espeakup.service'
+ 'speakupconf.service'
+ 'espeakup@.service'
+ 'espeakup.txt'
+ 'speakup.conf')
+sha256sums=('SKIP'
+ '8d747829bd998af199d2f2e4878782d8cc33bb11920de51159362021585febbe'
+ 'c1e97b20bd0dc4257d4af10999c65f238ac8fe8d70dd46c3d3524bf26be17171'
+ '5e9c1e2f065fdc10cd15c7704d61ba479c7e7ee352e24b904c60b8fcf8bec537'
+ 'b9879526368d2a258b2d0ba4b30aa12bd172e01944c91544c35321581ae2d9db'
+ '4c39f77f682335dee0daf7d12013bdbd695c4740acead9c7414dd3189269472e')
+
+pkgver() {
+ cd "$srcdir/$_gitname"
+ local ver="$(git describe --tags)"
+ echo "${ver//-/.}"
+}
+
+build() {
+ cd "$srcdir/$_gitname"
+ make
+}
+
+package() {
+ cd "$srcdir/$_gitname"
+ make PREFIX=/usr DESTDIR="$pkgdir" install
+ install -m644 -D "$srcdir/espeakup@.service" "$pkgdir/usr/lib/systemd/system/espeakup@.service"
+ install -m644 -D "$srcdir/espeakup.service" "$pkgdir/usr/lib/systemd/system/espeakup.service"
+ install -m644 -D "$srcdir/speakupconf.service" "$pkgdir/usr/lib/systemd/system/speakupconf.service"
+ install -m644 -D "$srcdir/espeakup.txt" "$pkgdir//etc/conf.d/espeakup"
+ install -m644 -D "$srcdir/speakup.conf" "$pkgdir/etc/modules-load.d/speakup.conf"
+}
+
+# vim: set ts=2 sw=2 et:
diff --git a/espeakup-git.install b/espeakup-git.install
new file mode 100644
index 00000000000..d0090481522
--- /dev/null
+++ b/espeakup-git.install
@@ -0,0 +1,20 @@
+post_install() {
+_alert
+}
+
+_alert() {
+cat << EOF
+If you were running the version of espeakup from community, Do the following to clear out the old service file:
+# systemctl disable espeakup
+To start the new service:
+# systemctl daemon-reload
+# systemctl enable espeakup@user.service
+# systemctl stop espeakup;systemctl start espeakup@user.service
+# You can set voice preferences in /home/user/.speakup/espeakup
+# For example, to set to us english
+# default_voice=en-us
+To load your speakupconf settings on start:
+# systemctl enable speakupconf.service
+EOF
+}
+
diff --git a/espeakup.service b/espeakup.service
new file mode 100644
index 00000000000..c7d6a7bcd5d
--- /dev/null
+++ b/espeakup.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=Software speech output system wide settings
+# 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
+EnvironmentFile=/etc/conf.d/espeakup
+PIDFile=/run/espeakup.pid
+ExecStart=/usr/bin/espeakup --default-voice=${default_voice}
+ExecReload=/bin/kill -HUP $MAINPID
+Restart=always
+
+[Install]
+WantedBy=sound.target
diff --git a/espeakup.txt b/espeakup.txt
new file mode 100644
index 00000000000..680c62df0e5
--- /dev/null
+++ b/espeakup.txt
@@ -0,0 +1 @@
+default_voice=en-us
diff --git a/espeakup@.service b/espeakup@.service
new file mode 100644
index 00000000000..8048430e3de
--- /dev/null
+++ b/espeakup@.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=Software speech output for Speakup for %i
+# 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
+EnvironmentFile=/home/%i/.speakup/espeakup
+PIDFile=/run/espeakup.pid
+ExecStart=/usr/bin/espeakup --default-voice=${default_voice}
+ExecReload=/bin/kill -HUP $MAINPID
+Restart=always
+
+[Install]
+WantedBy=sound.target
diff --git a/speakup.conf b/speakup.conf
new file mode 100644
index 00000000000..40e5faa8221
--- /dev/null
+++ b/speakup.conf
@@ -0,0 +1,2 @@
+speakup
+speakup_soft
diff --git a/speakupconf.service b/speakupconf.service
new file mode 100644
index 00000000000..d7e12fb4eb6
--- /dev/null
+++ b/speakupconf.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Load speakup configuration
+DefaultDependencies=no
+After=espeakup.service
+
+[Service]
+Type=oneshot
+ExecStart=-/usr/bin/speakupconf load
+StandardOutput=syslog
+
+[Install]
+WantedBy=sound.target