Add sphinxbase
This commit is contained in:
parent
d9e71b0af7
commit
3068a3825a
|
@ -0,0 +1,30 @@
|
|||
Copyright (c) 1999-2016 Carnegie Mellon University. All rights
|
||||
reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions
|
||||
are met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
|
||||
2. Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in
|
||||
the documentation and/or other materials provided with the
|
||||
distribution.
|
||||
|
||||
This work was supported in part by funding from the Defense Advanced
|
||||
Research Projects Agency and the National Science Foundation of the
|
||||
United States of America, and the CMU Sphinx Speech Consortium.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY CARNEGIE MELLON UNIVERSITY ``AS IS'' AND
|
||||
ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL CARNEGIE MELLON UNIVERSITY
|
||||
NOR ITS EMPLOYEES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
@ -0,0 +1,62 @@
|
|||
# Maintainer: Marco Pompili < marcs (dot) pompili (at) gmail (dot) com >
|
||||
# Contributor: Giorgio Gilestro crocowhile@gmail.com
|
||||
|
||||
pkgname=sphinxbase
|
||||
pkgver=5prealpha
|
||||
pkgrel=4
|
||||
pkgdesc='Common library for sphinx speech recognition.'
|
||||
url='http://cmusphinx.sourceforge.net/'
|
||||
arch=('i686' 'x86_64')
|
||||
license=('BSD')
|
||||
makedepends=('bison' 'swig' 'python2' 'python')
|
||||
depends=('lapack' 'libpulse') # not sure if libsamplerate is needed 'libsamplerate'
|
||||
source=("http://downloads.sourceforge.net/project/cmusphinx/${pkgname}/${pkgver}/$pkgname-$pkgver.tar.gz"
|
||||
"https://raw.githubusercontent.com/cmusphinx/sphinxbase/master/LICENSE")
|
||||
md5sums=('ea27ea80bc14b96ad0a55fd5c94025d5'
|
||||
'b15c818b9504393d35df76807094a51c')
|
||||
options=('!libtool')
|
||||
|
||||
prepare() {
|
||||
cd "$pkgname-$pkgver"
|
||||
|
||||
msg2 "Reconfiguring project for Automake v1.15"
|
||||
autoreconf -ivf > /dev/null
|
||||
|
||||
cd ..
|
||||
|
||||
cp -R "$pkgname-$pkgver" "$pkgname-$pkgver-py2"
|
||||
cp -R "$pkgname-$pkgver" "$pkgname-$pkgver-py3"
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$pkgname-$pkgver-py2"
|
||||
|
||||
msg2 "Building Sphinxbase with Python 2 bindings..."
|
||||
./configure --prefix=/usr
|
||||
make
|
||||
|
||||
cd "../$pkgname-$pkgver-py3"
|
||||
msg2 "Building Sphinxbase with Python 3 bindings..."
|
||||
export PYTHON=/usr/bin/python2
|
||||
./configure --prefix=/usr
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$pkgname-$pkgver-py2"
|
||||
|
||||
msg2 "Installing Sphinxbase with Python 2 bindings"
|
||||
make DESTDIR="$pkgdir/" install
|
||||
|
||||
msg2 "Installing Python 3 bindings"
|
||||
cd "../$pkgname-$pkgver-py3/swig"
|
||||
make DESTDIR="$pkgdir/" install
|
||||
|
||||
install -d "$pkgdir/usr/share/licenses/$pkgname"
|
||||
install -m644 "${srcdir}/LICENSE" \
|
||||
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
||||
|
||||
libtool --finish "$pkgdir/usr/lib"
|
||||
libtool --finish "$pkgdir/usr/lib/python2.7/site-packages/sphinxbase"
|
||||
libtool --finish "$pkgdir/usr/lib/python3.5/site-packages/sphinxbase"
|
||||
}
|
Loading…
Reference in New Issue