updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / sphinxbase / PKGBUILD
blob80bca50354d910d913e5bf342f277bf1a429dfbe
1 # Maintainer: Thomas Dziedzic < gostrc at gmail >
2 # Contributor: Giorgio Gilestro crocowhile@gmail.com
4 pkgname=sphinxbase
5 pkgver=0.7
6 pkgrel=2
7 pkgdesc='Common library for sphinx speech recognition.'
8 url='http://cmusphinx.sourceforge.net/'
9 arch=('i686' 'x86_64')
10 license=('BSD') #think so??
11 options=('!libtool')
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"
17 build() {
18     cd $pkgname-$pkgver
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
30     make
33 package() {
34     cd $pkgname-$pkgver
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/"
41