summaryrefslogtreecommitdiff
path: root/community/py3-speechrecognition/APKBUILD
blob: 43f997b5b5e80ef02450a5ed9fd65aadf2ca9814 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-speechrecognition
pkgver=3.8.1
pkgrel=3
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="555a4e7b2f0cb4f7adac8a0d7f1bc4071564a021a40b5ae75ea61e4b6a3b17b974672f0350ef06150bfa1711307e4af24603c8fc78aaf8a51fc82e73413815ac  speech_recognition-3.8.1.tar.gz"