summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 99376cd7d3ec4e8f65e79d5ab451fa1bca25d98f (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
33
34
35
36
37
38
39
40
41
42
43
44
45
# Maintainer: AlphaJack <alphajack at tuta dot io>
# Contributor: robertfoster

pkgname="mimic"
pkgver=0.2.4
pkgrel=3
pkgdesc="A fast, local, neural text to speech system for Mycroft"
url="https://mycroft.ai/mimic-3/"
license=("AGPL3")
arch=("any")
provides=("mimic")
conflicts=("mimic-bin")
depends=("espeak-phonemizer"
         "python"
         "python-dataclasses-json"
         "python-epitran"
         "python-gruut-ipa" # requirements.txt wants python-gruut, which has broken dependencies in aur
         "python-numpy"
         "python-onnxruntime"
         "python-phonemes2ids"
         "python-quart"
         "python-quart-cors"
         "python-requests"
         "python-swagger-ui-py"
         "python-tqdm"
         "python-xdgenvpy")
makedepends=("python-build" "python-installer" "python-setuptools" "python-wheel")
source=("https://github.com/MycroftAI/mimic3/releases/download/release%2Fv$pkgver/mycroft_mimic3_tts-$pkgver.tar.gz")
sha256sums=('60cd282274c94967e11845b9127ff2eb7ba936341de0e231107297c0c70d2a27')
options=("!strip")

build(){
 cd "mycroft_mimic3_tts-$pkgver"
 python -m build --wheel --no-isolation
}

package(){
 cd "mycroft_mimic3_tts-$pkgver"
 python -m installer --destdir="$pkgdir" dist/*.whl
 ln -s "/usr/bin/mimic3" "$pkgdir/usr/bin/mimic"
 ln -s "/usr/bin/mimic3-download" "$pkgdir/usr/bin/mimic-download"
 ln -s "/usr/bin/mimic3-server" "$pkgdir/usr/bin/mimic-server"
}