summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8e66203079c8bb48ba75442a41143226894a65b9 (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
46
47
48
49
50
51
52
53
# Maintainer: Evert Vorster <superchief@evertvorster.com>

pkgname=python-outetts
pkgver=0.4.4
pkgrel=2
pkgdesc='OuteAI Text-to-Speech (TTS) — multi-backend TTS with voice cloning'
arch=('any')
url='https://github.com/edwko/OuteTTS'
license=('Apache')
depends=(
  'python'
  'python-pytorch'
  'python-torchaudio'
  'python-scipy'
  'python-numpy'
  'python-soundfile'
  'python-sounddevice'
  'python-huggingface-hub'
  'python-transformers'
  'python-requests'
  'python-tqdm'
  'python-pyyaml'
  'python-inflect'
  'python-loguru'
  'python-matplotlib'
  'python-einops'
  'python-ftfy'
  'python-aiohttp'
  'python-polars'
)
makedepends=('python-installer' 'python-wheel')
source=("outetts-${pkgver}-py3-none-any.whl::https://files.pythonhosted.org/packages/1b/ea/980e108960caeacc6de1cbf5d5ba61a74b86869ac56bb1321eb18706f1b0/outetts-${pkgver}-py3-none-any.whl"
        "outetts-optional-deps.patch")
noextract=("outetts-${pkgver}-py3-none-any.whl")
b2sums=('3845737ebce9f7760e0d93b7aa8382fb3c7f7370aff876eed02b0236a1316e7121c982c8f1c0752f69a6bddea55088c9d8f98664a1eec9691710322fb7ea6568'
        '5b65360aec81584c1c5f9eb4ce6d1f1e7f47ca065e504ea6f6b7cfeb3eabb2b2dda1a7e6213a4b5a985ffaeb21a677953e75de474f7bcc8897d357b597a23616')

prepare() {
  cd "$srcdir"
  python -m wheel unpack "outetts-${pkgver}-py3-none-any.whl"
  cd "outetts-${pkgver}"
  patch -p1 < "$srcdir/outetts-optional-deps.patch"
  cd "$srcdir"
  rm -f "outetts-${pkgver}-py3-none-any.whl"
  python -m wheel pack "outetts-${pkgver}"
}

package() {
  cd "$srcdir"
  python -m installer --destdir="$pkgdir" dist/*.whl 2>/dev/null || \
    python -m installer --destdir="$pkgdir" "outetts-${pkgver}-py3-none-any.whl"
  install -Dm644 "${srcdir}/outetts-${pkgver}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}" 2>/dev/null || true
}