1 # Contributor: Abdallah Aly <l3thal8 @gmail.com>
2 # Oss verison: Mathias L. Baumann <marenz@supradigital.org>
3 pkgname=sphinxbase-svn-oss
6 pkgdesc="the basic libraries shared by the CMU Sphinx trainer and all the Sphinx decoders"
8 url="http://cmusphinx.sourceforge.net"
10 depends=('gcc' 'bison')
11 makedepends=('subversion')
13 conflicts=(sphinxbase)
14 source=(configure.in.oss.patch)
16 _svntrunk=https://cmusphinx.svn.sourceforge.net/svnroot/cmusphinx/trunk/sphinxbase
27 msg "getting $_svnmod"
28 if [ -d $_svnmod/.svn ]; then
29 (cd $_svnmod && svn up -r $pkgver)
31 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
34 msg "SVN checkout done or server timeout"
35 msg "Starting make..."
39 patch < ../../configure.in.oss.patch
40 ./autogen.sh --prefix=/usr
42 make check || return 1
43 mkdir -p "$pkgdir/usr/lib/python2.6/site-packages"
44 export PYTHONPATH=$PYTHONPATH:$pkgdir/usr/lib/python2.6/site-packages || return 1
45 make DESTDIR="$pkgdir" install || return 1
47 mkdir -p "$pkgdir/usr/share/licenses/cmu/"
48 cp $srcdir/$_svnmod/LICENSE $pkgdir/usr/share/licenses/cmu
50 # resolve conflict with setuptools
51 rm $pkgdir/usr/lib/python2.6/site-packages/site.{py,pyc}
54 md5sums=('62f76105aa6eb9e09bcf760e2a167d9c')