[arch-commits] Commit in (julius julius/repos julius/trunk julius/trunk/PKGBUILD)

Evgeniy Alekseev arcanis at nymeria.archlinux.org
Wed Jan 8 10:33:42 UTC 2014


    Date: Wednesday, January 8, 2014 @ 11:33:42
  Author: arcanis
Revision: 103597

Added julius-4.3

Added:
  julius/
  julius/repos/
  julius/trunk/
  julius/trunk/PKGBUILD

----------+
 PKGBUILD |   56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 56 insertions(+)

Added: julius/trunk/PKGBUILD
===================================================================
--- julius/trunk/PKGBUILD	                        (rev 0)
+++ julius/trunk/PKGBUILD	2014-01-08 10:33:42 UTC (rev 103597)
@@ -0,0 +1,56 @@
+# $Id$
+# Maintainer: Evgeniy Alekseev <arcanis.arch at gmail dot com>
+# Contributor: Matt Harrison <matt at mistbyte dot com>
+# Contributor: Muhammad Qadri <Muhammad dot A dot Qadri at gmail dot com>
+
+pkgname=julius
+pkgver=4.3
+pkgrel=1
+pkgdesc="A high-performance, two-pass large vocabulary continuous speech recognition decoder software"
+arch=("i686" "x86_64")
+url="http://julius.sourceforge.jp/"
+license=("custom")
+depends=("libpulse")
+optdepends=("voxforge-am-julius: acoustic models")
+source=("http://iij.dl.sourceforge.jp/${pkgname}/60153/${pkgname}-${pkgver}.tar.gz")
+md5sums=("48b36e9104b55c409a60947f7ba05bb3")
+
+prepare() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  
+  # replace /lib/cpp with /usr/bin/cpp since Arch Linux doesn't have /lib/cpp anymore
+  sed -i "s|/lib/cpp|/usr/bin/cpp|g" "julius/configure"
+  sed -i "s|/lib/cpp|/usr/bin/cpp|g" "jcontrol/configure"
+  sed -i "s|/lib/cpp|/usr/bin/cpp|g" "libjulius/configure"
+  sed -i "s|/lib/cpp|/usr/bin/cpp|g" "gramtools/configure"
+  sed -i "s|/lib/cpp|/usr/bin/cpp|g" "libsent/configure"
+  sed -i "s|/lib/cpp|/usr/bin/cpp|g" "configure"
+  
+  # Add -02 to CPPFLAGS to prevent issue with -D_FORTIFY_SOURCE=2
+  CPPFLAGS="$CPPFLAGS -O2"
+}
+
+build() {
+  cd "${srcdir}/${pkgname}-${pkgver}/"
+  ./configure \
+    --prefix="/usr/" \
+    --mandir='${prefix}/share/man' \
+    --enable-words-int \
+    --enable-msd \
+    --enable-gmm-vad \
+    --enable-decoder-vad \
+    --enable-power-reject \
+    --enable-wpair
+  make
+}
+
+package() {
+  cd "${srcdir}/${pkgname}-${pkgver}/"
+  
+  make prefix="${pkgdir}/usr" install
+  install -D "LICENSE.txt" "${pkgdir}/usr/share/licenses/julius/LICENSE"
+  # remove empty lib directory
+  rm -r "${pkgdir}/usr/lib"
+}
+
+# vim:set ts=2 sw=2 et:


Property changes on: julius/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property



More information about the arch-commits mailing list