1 # Contributor: Chris Brannon <cmbrannon79@gmail.com>
5 pkgdesc="Emacs extension that provides spoken output"
7 url="http://emacspeak.sourceforge.net/"
8 license=('GPL' 'custom')
9 makedepends=('subversion')
10 depends=(emacs tcl tclx espeak)
11 optdepends=( 'eflite: software speech via the FLite TTS engine')
14 install='emacspeak-svn.install'
15 source=('verbatim.txt')
16 md5sums=('d6248e590e7ab9a510356fb38cea1373')
18 _svntrunk='http://emacspeak.googlecode.com/svn/trunk/'
24 if [ -d $_svnmod/.svn ]; then
25 (cd $_svnmod && svn up -r $pkgver)
27 svn co $_svntrunk -r $pkgver $_svnmod
30 msg "SVN checkout done or server timeout"
31 msg "Starting make..."
33 rm -rf "$srcdir/$_svnmod-build"
34 cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
35 cd "$srcdir/$_svnmod-build"
37 make config || return 1
39 make DESTDIR="$pkgdir" prefix="/usr" install || return 1
40 gzip -9nf "${pkgdir}"/usr/share/info/* || return 1
41 rm -f "$pkgdir/usr/share/info/dir"
42 cd "$pkgdir/usr/share/emacs/site-lisp/emacspeak/servers/linux-espeak" || return 1
44 # Yep, we're going to compile in $pkgdir. There is method to my madness!
45 make TCL_VERSION=8.5 || return 1