summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD60
-rw-r--r--mkfile.in.patch10
3 files changed, 87 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..538dead7700
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = htk
+ pkgdesc = A portable toolkit primarily used for speech recognition research
+ pkgver = 3.4.1
+ pkgrel = 3
+ url = http://htk.eng.cam.ac.uk/
+ arch = x86_64
+ license = custom: Proprietary
+ makedepends = wget
+ makedepends = gcc-multilib
+ depends = lib32-glibc
+ depends = lib32-libx11
+ options = !makeflags
+ source = mkfile.in.patch
+ md5sums = 10eec9a139acea719c0b9f451d8f7807
+
+pkgname = htk
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b1e8e8a728b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,60 @@
+# Contributor: Oliver Bandel <oliver@first.in-berlin.de>
+# Derived from the 32-bit version PKGBUILD (J. Lichtblau and T. Adams)
+
+pkgname=htk
+pkgver=3.4.1
+pkgrel=3
+pkgdesc="A portable toolkit primarily used for speech recognition research"
+arch=('x86_64')
+#arch=('i686')
+url="http://htk.eng.cam.ac.uk/"
+license=('custom: Proprietary')
+depends=('lib32-glibc' 'lib32-libx11')
+makedepends=('wget' 'gcc-multilib')
+options=('!makeflags')
+#source=(http://htk.eng.cam.ac.uk/ftp/software/HTK-$pkgver.tar.gz)
+source=(mkfile.in.patch)
+#md5sums=('b3fc12006b0af12f59cd573c07aa4c1d')
+md5sums=('10eec9a139acea719c0b9f451d8f7807')
+
+build() {
+
+# Note: HTK cannot be downloaded without a username/password. Use name and password from your registration here.
+# http://htk.eng.cam.ac.uk/ftp/software/HTK-3.4.1.tar.gz
+# wget --user=YOUR_USERNAME --password=YOUR_PASSWORD http://htk.eng.cam.ac.uk/ftp/software/HTK-$pkgver.tar.gz
+
+ # unpack file
+ tar -xzvf HTK-$pkgver.tar.gz
+
+ #mv htk ${pkgname} # needed before, as pkgname was "pkg64"
+ # here now 64-bit-optimization might be introduced...
+ if [ "$HOSTTYPE" == "x86_64" ];
+ then
+ echo 64 Bit
+ else
+ echo 32 Bit
+ fi
+
+set | grep -e 32 -e 64
+#exit
+ # substitute spaces instead of tabs in Makefile-rule
+ patch ${srcdir}/${pkgname}/HLMTools/Makefile.in ../mkfile.in.patch
+
+
+ # make the stuff
+ cd ${srcdir}/${pkgname}
+ ./configure --prefix=${pkgdir}/usr
+ make all
+}
+
+package() {
+ # create a needed dir
+ mkdir -p ${pkgdir}/usr/bin
+
+ # install binaries
+ cd ${srcdir}/${pkgname}
+ make install
+
+ # install License
+ install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/$pkgname/LICENSE
+}
diff --git a/mkfile.in.patch b/mkfile.in.patch
new file mode 100644
index 00000000000..39d6d44e2cd
--- /dev/null
+++ b/mkfile.in.patch
@@ -0,0 +1,10 @@
+--- src/htk/HLMTools/Makefile.in 2009-03-11 11:07:18.000000000 +0100
++++ Makefile.in.hlmtools 2014-04-02 15:42:04.257826690 +0200
+@@ -74,6 +74,6 @@
+ for program in $(PROGS) ; do $(INSTALL) -m 755 $${program}@BINARY_EXTENSION@ $(bindir) ; done
+
+ mkinstalldir:
+- if [ ! -d $(bindir) -a X_@TRADHTK@ = X_yes ] ; then mkdir -p $(bindir) ; fi
++ if [ ! -d $(bindir) -a X_@TRADHTK@ = X_yes ] ; then mkdir -p $(bindir) ; fi
+
+ .PHONY: all strip clean cleanup distclean install mkinstalldir