summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 361f57e508ad1711706a8bdb478384f70a7657f8 (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
# Maintainer: Lumaku <lumaku@mailbox.org>
pkgname=python-espnet-git
pkgver=0.9.8.r11116
pkgrel=1
pkgdesc='End-to-End Speech Processing Toolkit Python-Only Package (without venv)'
arch=('any')
url='https://github.com/espnet/espnet'
license=('Apache 2.0')
depends=('python>=3.7' 'python-numpy' 'python-soundfile' 'python-typeguard' 'python-editdistance' 'python-librosa' 'tensorboard' 'python-h5py' 'python-nltk' 'python-regex' 'python-inflect' 'python-jaconv' 'python-pytorch-complex-git' 'python-pytorch-wpe-git' 'python-g2p-git' 'python-kaldiio-git' 'python-sentencepiece-git' 'python-wandb-git' 'python-espnet-tts-frontend-git' 'python-ctc-segmentation-git')
optdepends=('sox: convert audio files' 'python-espnet-model-zoo-git: pretrained models')
makedepends=('git' 'python-setuptools')
provides=('python-espnet')
conflicts=("python-espnet" "${pkgname}")
source=(
    "${pkgname}::git+${url}")
md5sums=(
    'SKIP')


pkgver() {
    cd "${pkgname}"
    printf "%s.r%s" "$(python setup.py --version)" "$(git rev-list --count HEAD)"
}


build() {
    cd "${pkgname}"
}


package() {
    cd "${pkgname}"
    export PYTHONHASHSEED=0
    python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}