updated on Sat Jan 21 04:00:54 UTC 2012
[aur-mirror.git] / opentts-git / PKGBUILD
blob03404657d836f2da1ab58a866802108d7faadc7d
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>
6 pkgname=opentts-git
7 pkgver=20100607
8 pkgrel=1
9 arch=('i686' 'x86_64')
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")
16 conflicts=('opentts')
17 options=('!libtool') 
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"
28 _gitname="opentts"
30 build() {
31   cd "$srcdir"
32   msg "Connecting to GIT server...."
33   if [ -d $_gitname ] ; then
34     cd $_gitname && git pull origin
35     msg "The local files are updated."
36   else
37     git clone $_gitroot $_gitname
38   fi
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"
45   # Building opentts
46   autoreconf -i
47   ./configure --prefix=/usr --sysconfdir=/etc --with-alsa --with-libao || return 1
48   make || 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')