blob: 925e4b5f673dbfbd98cd64a8b51a820e2d53ec47 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# Maintainer: Marco Pompili marcs.pompili@gmail.com
# Contributor: Giorgio Gilestro crocowhile@gmail.com
pkgname=sphinxbase
pkgver=0.8
pkgrel=4
pkgdesc='Common library for sphinx speech recognition.'
url='http://cmusphinx.sourceforge.net/'
arch=('i686' 'x86_64')
license=('BSD')
options=('!libtool')
makedepends=('bison')
depends=('python2' 'cython2' 'lapack' 'alsa-lib' 'libpulse' 'libsamplerate')
source=("http://downloads.sourceforge.net/cmusphinx/$pkgname-$pkgver.tar.gz")
md5sums=('7335d233f7ad4ecc4b508aec7b5dc101')
_pythondir="$pkgdir/usr/lib/python2.7/site-packages"
build() {
cd $pkgname-$pkgver
find -type f -exec sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' {} \;
find -type f -exec sed -i 's_/usr/bin/python_/usr/bin/python2_' {} \;
find -type f -exec sed -i 's_python -c_python2 -c_' {} \;
find -type f -exec sed -i 's_python-config_python2-config_' {} \;
find -type f -exec sed -i 's_cython_cython2_' {} \;
export PYTHON=/usr/bin/python2
export PYTHON_CONFIG=/usr/bin/python2-config
./configure --prefix=/usr --with-python=/usr/bin/python2
make
}
package() {
cd $pkgname-$pkgver
install -d $_pythondir
PYTHONPATH=$_pythondir make DESTDIR="$pkgdir" install
install -d "$pkgdir/usr/share/licenses/$pkgname"
install -m644 COPYING "$pkgdir/usr/share/licenses/$pkgname/"
}
|