summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 33ef00361e1aaacdc2cbff124d6dbfd7a2f8d88b (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
# Maintainer: Lumaku <lumaku@mailbox.org>
pkgname=python-icefall-git
pkgver=1.2.1
pkgrel=1
pkgdesc="Official recipes associated with k2 and lhotse"
arch=('any')
url='https://github.com/danpovey/lilcom'
license=('MIT')
depends=('python>=3.7'
         'python-kaldialign'
         'python-kaldilm'
         'python-sentencepiece'
         'tensorboard')
makedepends=('git' 'python-setuptools')
optdepends=('python-lhotse: Datasets')
provides=('python-icefall')
conflicts=('python-icefall')
source=(
    "${pkgname}::git+${url}")
md5sums=(
    'SKIP')


pkgver() {
    cd "${pkgname}"
    printf "%s" "$(python setup.py --version)"
}


build() {
    cd "${pkgname}"
    python setup.py build
}


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