blob: a9497eecc5426f3007601d6b237b54676d9c32ff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
# Maintainer: Storm Dragon <stormdragon2976@gmail.com>
# Contributor: Kyle <kyle@free2.ml>
# Contributer: Steve Holmes <steve.holmes88@gmail.com>
# Contributor: Alexander Jenisch <nt@divzero.at>
# Contributor: Chris Brannon <cmbrannon@cox.net>
# Contributor: Andreas Messer <andi@bupfen.de>
pkgname=speech-dispatcher-git
pkgver=0.9.0.rc2.r7.gd25ed10d
pkgrel=1
arch=('armv7h' 'aarch64' 'i686' 'x86_64')
pkgdesc="High-level device independent layer for speech synthesis interface (development version)."
license=('GPL2' 'FDL')
depends=('glib2' 'libao' 'python')
optdepends=('festival-freebsoft-utils: Speech output using Festival.'
'flite: Speech output using Festival Lite.'
'espeak: Speech output using ESpeak.'
'svox-pico-git: Speech output using Android pico voice.')
makedepends=('pkgconfig' 'espeak' 'dotconf' 'automake' 'intltool')
provides=("speech-dispatcher")
conflicts=('speech-dispatcher')
options=('!libtool')
url="http://www.freebsoft.org/speechd"
_gitname="speechd"
source=('git+https://github.com/brailcom/speechd.git'
'speech-dispatcherd.service'
"speech-dispatcher-git.install")
#source=("speechd.run" "speechd.sh" "speechd.logrotate")
install="speech-dispatcher-git.install"
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'
'etc/logrotate.d/speechd')
#_gitroot="git://git.freebsoft.org/git/speechd"
#_gitname="speechd"
sha512sums=('SKIP'
'73eb563003b03f4836b17af66335664050d1dc3bd8434be368cd09ff8933aa2adc4bd17c4ce5c1bbbd406a0b0880191426a679fa05eac0a30f4005eaeeb47340'
'c7dbb517526cfbaaf455ff974209a07749385e504175d9d3328d4020f47f9bcf4572848d909738b4b3a5534e9ad4b1e09bcdb51a44945b2c7aecd4cf8f718f8f')
pkgver() {
cd ${_gitname}
git describe --tags | sed -E 's/([^-]*-g)/r\1/;s/[-]/./g'
}
build() {
cd ${srcdir}/${_gitname}
autoreconf -i
PYTHON=python ./configure --prefix=/usr --sysconfdir=/etc --with-alsa --with-libao
make
}
package() {
cd ${srcdir}/${_gitname}
make DESTDIR=${pkgdir} install
# Remove info dir and compress info pages
rm -f ${pkgdir}/usr/share/info/dir
#gzip -9nf ${pkgdir}/usr/share/info/*
# Install startup, profile and logrotate files
install -Dm644 "${srcdir}"/speech-dispatcherd.service "${pkgdir}/usr/lib/systemd/system/speech-dispatcherd.service"
#install -D -m644 ${srcdir}/speechd.logrotate ${pkgdir}/etc/logrotate.d/speechd
install -d "${pkgdir}/var/log/speech-dispatcher"
# Modify speechd.conf to accomodate running as a system wide service
#cd "${pkgdir}/etc/speech-dispatcher"
#sed -i -e 's|LogDir "default"|#LogDir "default"|' speechd.conf
#sed -i -e 's|#LogDir "/var/log/speech-dispatcher/"|LogDir "/var/log/speech-dispatcher/"|' speechd.conf
#sed -i -e 's|# AudioOutputMethod "pulse"|AudioOutputMethod "alsa"|' speechd.conf
#sed -i -e 's|# DisableAutoSpawn|DisableAutoSpawn|' speechd.conf
}
|