2021-09-10 17:01:58 +02:00
|
|
|
# Maintainer: Martchus <martchus@gmx.net>
|
|
|
|
# Contributor: Marco Pompili <aur AT emarcs DOT org>
|
2016-05-10 17:19:48 +02:00
|
|
|
# Contributor: Giorgio Gilestro crocowhile@gmail.com
|
2016-05-28 14:00:33 +02:00
|
|
|
# Contributor: Mladen Milinkovic <maxrd2@smoothware.net>
|
2016-05-10 17:19:48 +02:00
|
|
|
|
|
|
|
pkgname=sphinxbase
|
|
|
|
pkgver=5prealpha
|
2021-12-03 19:47:17 +01:00
|
|
|
pkgrel=13
|
2021-09-10 17:01:58 +02:00
|
|
|
pkgdesc='Common library for sphinx speech recognition'
|
2021-12-03 19:47:17 +01:00
|
|
|
url='https://cmusphinx.sourceforge.net/'
|
2016-05-10 17:19:48 +02:00
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
license=('BSD')
|
2018-08-30 18:18:45 +02:00
|
|
|
makedepends=('bison' 'swig')
|
2021-09-10 17:01:58 +02:00
|
|
|
depends=('python' 'lapack' 'libpulse') # not sure if libsamplerate is needed 'libsamplerate'
|
2020-05-12 17:41:32 +02:00
|
|
|
source=("http://downloads.sourceforge.net/project/cmusphinx/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz"
|
|
|
|
"sphinxbase-5prealpha-fix-doxy2swig.patch")
|
|
|
|
|
|
|
|
sha256sums=('f72bdb59e50b558bed47cc2105777200d2b246a0f328e913de16a9b22f9a246f'
|
|
|
|
'1cb485202f83dc517872f5ab41f59d18884af1b85799166d80e08860f7729919')
|
2016-05-10 17:19:48 +02:00
|
|
|
options=('!libtool')
|
|
|
|
|
|
|
|
prepare() {
|
2018-08-30 18:18:45 +02:00
|
|
|
cd "${pkgname}-${pkgver}"
|
2016-05-10 17:19:48 +02:00
|
|
|
|
2020-05-12 17:41:32 +02:00
|
|
|
patch -p1 -b -i ../sphinxbase-5prealpha-fix-doxy2swig.patch
|
2021-12-03 19:47:17 +01:00
|
|
|
|
|
|
|
echo "Reconfiguring project for current version of Automake"
|
|
|
|
autoreconf -ivf > /dev/null
|
2016-05-10 17:19:48 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2021-09-10 17:01:58 +02:00
|
|
|
cd "${pkgname}-${pkgver}"
|
2016-05-10 17:19:48 +02:00
|
|
|
|
2021-12-03 19:47:17 +01:00
|
|
|
export PYTHON=/usr/bin/python PYTHONWARNINGS=ignore
|
2016-05-10 17:19:48 +02:00
|
|
|
./configure --prefix=/usr
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2021-09-10 17:01:58 +02:00
|
|
|
cd "${pkgname}-${pkgver}"
|
2018-08-30 18:18:45 +02:00
|
|
|
make DESTDIR="${pkgdir}/" install
|
2016-05-10 17:19:48 +02:00
|
|
|
|
2018-08-30 18:18:45 +02:00
|
|
|
install -d "${pkgdir}/usr/share/licenses/${pkgname}"
|
|
|
|
install -m644 "${srcdir}/${pkgname}-${pkgver}/LICENSE" \
|
2016-05-10 17:19:48 +02:00
|
|
|
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
|
|
}
|