From 009d5f933c32bfb69e4d9d91827f1761c60e2cff Mon Sep 17 00:00:00 2001 From: Francesco Date: Fri, 15 Nov 2013 14:53:49 +0000 Subject: [PATCH] sphinxbase 0.8: added to repo --- sphinxbase/PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 sphinxbase/PKGBUILD diff --git a/sphinxbase/PKGBUILD b/sphinxbase/PKGBUILD new file mode 100644 index 000000000..ef1792442 --- /dev/null +++ b/sphinxbase/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: Thomas Dziedzic < gostrc at gmail > +# Contributor: Giorgio Gilestro crocowhile@gmail.com + +pkgname=sphinxbase +pkgver=0.8 +pkgrel=2 +pkgdesc='Common library for sphinx speech recognition.' +url='http://cmusphinx.sourceforge.net/' +arch=('x86_64') +license=('BSD') #think so?? +options=('!libtool') +depends=('lapack' 'alsa-lib') +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_' {} \; + + 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/" +}