mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
35 lines
1.1 KiB
Plaintext
35 lines
1.1 KiB
Plaintext
# Contributor: Bart Ribbers <bribbers@disroot.org>
|
|
# Maintainer: Bart Ribbers <bribbers@disroot.org>
|
|
pkgname=py3-speechrecognition
|
|
pkgver=3.10.0
|
|
pkgrel=1
|
|
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"
|
|
subpackages="$pkgname-pyc"
|
|
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="
|
|
702c8e0738ee80081dad5cd749ad61325d38bf57faf71ebacb9a317462a741a3e19d3120fab4f2a309f583ff461d26f9e648cfac0dcc767a1eb8bf620683bfb9 speech_recognition-3.10.0.tar.gz
|
|
"
|