mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 11:45:18 +03:00
31 lines
1 KiB
Text
31 lines
1 KiB
Text
# Contributor: Bart Ribbers <bribbers@disroot.org>
|
|
# Maintainer: Bart Ribbers <bribbers@disroot.org>
|
|
pkgname=py3-speechrecognition
|
|
pkgver=3.8.1
|
|
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 --prefix=/usr --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="555a4e7b2f0cb4f7adac8a0d7f1bc4071564a021a40b5ae75ea61e4b6a3b17b974672f0350ef06150bfa1711307e4af24603c8fc78aaf8a51fc82e73413815ac speech_recognition-3.8.1.tar.gz"
|