1 # maintainer: Steve Holmes <steve.holmes88@gmail.com>
2 # Contributor: Alexander Jenisch <nt@divzero.at>
3 # Contributor: Chris Brannon <cmbrannon@cox.net>
4 # Contributor: Andreas Messer <andi@bupfen.de>
10 pkgdesc="High-level device independent layer for speech synthesis interface"
11 license=('GPL2' 'FDL')
12 depends=('glib2' 'alsa-lib' 'python' 'dotconf')
13 optdepends=('festival-freebsoft-utils: Speech output using Festival.' 'espeak: Speech output using ESpeak.')
14 makedepends=('pkgconfig' 'espeak' 'dotconf' 'automake')
15 provides=("opentts=$pkgver")
18 url="http://www.openttsorg/projects/opentts"
19 source=("openttsd.sh")
21 install="opentts.install"
23 backup=(etc/opentts/openttsd.conf \
24 etc/opentts/clients/* \
25 etc/opentts/modules/*)
27 _gitroot="git://git.opentts.org/opentts.git"
32 msg "Connecting to GIT server...."
33 if [ -d $_gitname ] ; then
34 cd $_gitname && git pull origin
35 msg "The local files are updated."
37 git clone $_gitroot $_gitname
39 msg "GIT checkout done or server timeout"
40 msg "Starting make..."
41 rm -rf "$srcdir/$_gitname-build"
42 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
43 cd "$srcdir/$_gitname-build"
47 ./configure --prefix=/usr --sysconfdir=/etc --with-alsa --with-libao || return 1
49 make DESTDIR=${pkgdir} install || return 1
50 rm -f ${pkgdir}/usr/share/info/dir
51 gzip -9nf ${pkgdir}/usr/share/info/*
52 install -D -m755 ${srcdir}/openttsd.sh ${pkgdir}/etc/rc.d/openttsd
53 mkdir -p ${pkgdir}/var/log/opentts
56 md5sums=('d26699d15c5a59d7be10c7c16934e3fc')