updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / sphinxbase-svn-oss / PKGBUILD
blobc282d61d0bebe0e1cb4fff4e203773c7a18b2b50
1 # Contributor: Abdallah Aly <l3thal8 @gmail.com>
2 # Oss verison: Mathias L. Baumann <marenz@supradigital.org>
3 pkgname=sphinxbase-svn-oss
4 pkgver=9788
5 pkgrel=4
6 pkgdesc="the basic libraries shared by the CMU Sphinx trainer and all the Sphinx decoders"
7 arch=(i686 x86_64)
8 url="http://cmusphinx.sourceforge.net"
9 license=('CMU')
10 depends=('gcc' 'bison')
11 makedepends=('subversion')
12 provides=(sphinxbase)
13 conflicts=(sphinxbase)
14 source=(configure.in.oss.patch)
16 _svntrunk=https://cmusphinx.svn.sourceforge.net/svnroot/cmusphinx/trunk/sphinxbase
17 _svnmod=sphinxbase
21 build() {
24 cd "$srcdir"
26   
27   msg "getting $_svnmod"
28   if [ -d $_svnmod/.svn ]; then
29     (cd $_svnmod && svn up -r $pkgver)
30   else
31     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
32   fi  
33   
34   msg "SVN checkout done or server timeout"
35   msg "Starting make..."
37 cd $srcdir/$_svnmod
38 #make it use oss
39 patch < ../../configure.in.oss.patch
40 ./autogen.sh --prefix=/usr
41 make || return 1
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')