summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fe1497ced2a22bb8e90d85e0657990ac99e127c1 (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
# Maintainer: Jingbei Li <i@jingbei.lli>
pkgname='kaldi-sctk'
_pkgname='kaldi'
pkgdesc='Speech recognition research toolkit'
pkgver=2.4.10
pkgrel=1
makedepends=('git' 'wget' 'python' 'python2' 'subversion')
depends=('perl')
arch=('x86_64' 'i686')
url='https://github.com/kaldi-asr/kaldi'
license=('APACHE')
source=("https://github.com/kaldi-asr/kaldi/archive/master.zip")
sha256sums=('SKIP')

build () {
	cd $srcdir/$_pkgname-master/tools
	sed \
		-e '/^sclite_compiled/s/ sctk_configured//' \
		-i Makefile
	make sctk_configured
	sed '/^DEFS/s/ -Dsize_t=unsigned//' -i sctk/src/sclite/makefile
	make sclite
	return
}

package () {
	mkdir -p $pkgdir/opt/$_pkgname/tools/sctk-$pkgver
	cd $pkgdir/opt/$_pkgname/tools
	ln -s sctk-$pkgver sctk
	cp -r $srcdir/$_pkgname-master/tools/sctk-$pkgver/bin sctk-$pkgver
}