summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorJingbei Li2017-10-31 22:23:23 +0800
committerJingbei Li2017-10-31 22:23:23 +0800
commit5e9d916ca1acf1c3318bddc4cea989d04eef619a (patch)
tree7a44995683e0e1c9fd371a39dc0b92d4140e6b4d /PKGBUILD
downloadaur-5e9d916ca1acf1c3318bddc4cea989d04eef619a.tar.gz
initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..0ffa4849fb1
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Jingbei Li <i@jingbei.lli>
+pkgname='kaldi-sctk'
+_pkgname='kaldi-master'
+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/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/tools/sctk-$pkgver/bin sctk-$pkgver
+}