mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-22 10:45:15 +03:00
33 lines
1 KiB
Text
33 lines
1 KiB
Text
# Contributor: Bart Ribbers <bribbers@disroot.org>
|
|
# Maintainer: Bart Ribbers <bribbers@disroot.org>
|
|
pkgname=py3-speechrecognition
|
|
pkgver=3.9.0
|
|
pkgrel=0
|
|
pkgdesc="Library for performing speech recognition, with support for several engines and APIs, online and offline"
|
|
url="https://github.com/Uberi/speech_recognition/"
|
|
arch="noarch"
|
|
license="BSD-3-Clause AND GPL-2.0-only"
|
|
depends="python3 py3-pyaudio flac"
|
|
makedepends="py3-setuptools"
|
|
source="https://github.com/Uberi/speech_recognition/archive/$pkgver/speech_recognition-$pkgver.tar.gz"
|
|
options="!check" # Requires user interaction and a mic
|
|
builddir="$srcdir/speech_recognition-$pkgver"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
# Remove pre-built flac binaries, we want to use system ones instead
|
|
rm speech_recognition/flac*
|
|
}
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --skip-build --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
de4f6b9d341f013e34ff67a65b459ac4895b8e8ac3682affdcb7f9c8dfd035ae26c821bb39966a0921c4b65e73ffcbbf2f8787f99568405f59ff61540e890729 speech_recognition-3.9.0.tar.gz
|
|
"
|