summaryrefslogtreecommitdiff
path: root/community/py3-voxpopuli/APKBUILD
blob: be913185593bb3c18f995cdd354a6eb0a8edff54 (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
32
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-voxpopuli
pkgver=0.3.6
pkgrel=3
pkgdesc="A wrapper around Espeak and Mbrola, to do simple Text-To-Speech (TTS), with the possibility to tweak the phonemic form"
url="https://github.com/hadware/voxpopuli"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
checkdepends="
	mbrola-voices
	py3-pytest
	"
source="https://github.com/hadware/voxpopuli/archive/v$pkgver/voxpopuli-v$pkgver.tar.gz"
options="!check" # Requires mbrola which doesn't currently compile
builddir="$srcdir/voxpopuli-$pkgver"

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$PWD/build/lib" pytest tests/tests.py
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="9ef82ab33304da31db82efdf1a0816da5631f4c3344f4373a27bcd03d95c0711b74e9f61cdfdb01aef17759a1054e3406426d8db9893a9e1224756239ca66eec  voxpopuli-v0.3.6.tar.gz"