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

Antonio Rojas arojas at archlinux.org
Fri Dec 16 20:38:45 UTC 2016


    Date: Friday, December 16, 2016 @ 20:38:44
  Author: arojas
Revision: 199884

Add flite, new Qt dependency

Added:
  flite/
  flite/trunk/
  flite/trunk/PKGBUILD

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

Added: flite/trunk/PKGBUILD
===================================================================
--- flite/trunk/PKGBUILD	                        (rev 0)
+++ flite/trunk/PKGBUILD	2016-12-16 20:38:44 UTC (rev 199884)
@@ -0,0 +1,38 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Contributor: Steven Honeyman <stevenhoneyman at gmail com>
+
+pkgname=flite
+pkgver=2.0.0
+pkgrel=2
+pkgdesc="A lighweight speech synthesis engine (text to speech)"
+arch=(i686 x86_64)
+url="http://cmuflite.org"
+license=(custom)
+depends=(alsa-lib)
+makedepends=(chrpath)
+source=(http://festvox.org/flite/packed/flite-${pkgver%.*}/flite-$pkgver-release.tar.bz2)
+md5sums=('645db96ffc296cbb6d37f231cc1cc6b2')
+
+prepare() {
+  cd $pkgname-$pkgver-release
+  sed '/^#VOXES.*$/d; s/+//g; s/cmu_indic_lex/&\nVOXES = cmu_us_kal16 cmu_us_slt/' config/android.lv >config/archlinux.lv
+  sed -i '/$(INSTALL) -m 755 $(BINDIR)\/flite_time $(DESTDIR)$(INSTALLBINDIR)/d' main/Makefile
+}
+
+build() {
+  cd $pkgname-$pkgver-release
+  ./configure --prefix=/usr --enable-shared \
+			    --with-audio=alsa \
+			    --with-vox=cmu_us_kal16 \
+			    --with-langvox=archlinux
+  make
+}
+
+package() {
+  cd $pkgname-$pkgver-release
+  make DESTDIR="$pkgdir" install
+  install -D -m644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+
+# Fix rpath
+  chrpath -d "$pkgdir"/usr/bin/*
+}



More information about the arch-commits mailing list