updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / emacspeak-svn / PKGBUILD
blob595144c09a8e4b8d71410e928493c3965dda439b
1 # Contributor: Chris Brannon <cmbrannon79@gmail.com>
2 pkgname=emacspeak-svn
3 pkgver=6244
4 pkgrel=1
5 pkgdesc="Emacs extension that provides spoken output"
6 arch=(i686 x86_64)
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')
12 provides=(emacspeak)
13 conflicts=(emacspeak)
14 install='emacspeak-svn.install'
15 source=('verbatim.txt')
16 md5sums=('d6248e590e7ab9a510356fb38cea1373')
18 _svntrunk='http://emacspeak.googlecode.com/svn/trunk/'
19 _svnmod=emacspeak
21 build() {
22   cd "$srcdir"
24   if [ -d $_svnmod/.svn ]; then
25     (cd $_svnmod && svn up -r $pkgver)
26   else
27     svn co $_svntrunk -r $pkgver $_svnmod
28   fi
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
38   make || 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
46   rm -f tclespeak.o