1 # Maintainer: Thomas Dziedzic < gostrc at gmail >
2 # Contributor: Giorgio Gilestro crocowhile@gmail.com
7 pkgdesc='Common library for sphinx speech recognition.'
8 url='http://cmusphinx.sourceforge.net/'
10 license=('BSD') #think so??
12 depends=('lapack' 'alsa-lib')
13 source=("http://downloads.sourceforge.net/cmusphinx/$pkgname-$pkgver.tar.gz")
14 md5sums=('7c28f37c0eb9e30e22e9992eace3b605')
15 _pythondir="$pkgdir/usr/lib/python2.7/site-packages"
20 find -type f -exec sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' {} \;
21 find -type f -exec sed -i 's_/usr/bin/python_/usr/bin/python2_' {} \;
22 find -type f -exec sed -i 's_python -c_python2 -c_' {} \;
23 find -type f -exec sed -i 's_python-config_python2-config_' {} \;
25 export PYTHON=/usr/bin/python2
26 export PYTHON_CONFIG=/usr/bin/python2-config
28 ./configure --prefix=/usr --with-python=/usr/bin/python2
36 install -d $_pythondir
37 PYTHONPATH=$_pythondir make DESTDIR="$pkgdir" install
39 install -d "$pkgdir/usr/share/licenses/$pkgname"
40 install -m644 COPYING "$pkgdir/usr/share/licenses/$pkgname/"