summaryrefslogtreecommitdiffstats
path: root/extra/speech-dispatcher/Pkgfile
diff options
context:
space:
mode:
Diffstat (limited to 'extra/speech-dispatcher/Pkgfile')
-rw-r--r--extra/speech-dispatcher/Pkgfile32
1 files changed, 32 insertions, 0 deletions
diff --git a/extra/speech-dispatcher/Pkgfile b/extra/speech-dispatcher/Pkgfile
new file mode 100644
index 000000000..0fabf1da0
--- /dev/null
+++ b/extra/speech-dispatcher/Pkgfile
@@ -0,0 +1,32 @@
+# Description: Interface simple pour la synthèse vocale.
+# URL: http://devel.freebsoft.org/speechd
+# Packager: piernov <piernov AT piernov DOT org>
+# Maintainer: piernov <piernov AT piernov DOT org>
+# Depends on: dotconf, glib, python2
+# Depends on: dotconf,glib,python2
+
+name=speech-dispatcher
+version=0.7.1
+release=2
+source=( http://devel.freebsoft.org/pub/projects/speechd/$name-$version.tar.gz speechd.rc )
+
+build ()
+{
+ cd $name-$version
+ PYTHON=python2 ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --without-flite
+ make
+ make DESTDIR=$PKG install
+
+ install -Dm755 $SRC/speechd.rc $PKG/etc/rc.d/init.d/speechd
+ install -d ${pkgdir}/var/log/speech-dispatcher
+
+ sed -i -e 's|#!/usr/bin/python|#!/usr/bin/python2|' ${pkgdir}/usr/bin/spd-conf
+ sed -i -e 's|#!/usr/bin/env python|#!/usr/bin/env python2|' ${pkgdir}/usr/lib/python2.7/site-packages/speechd/_test.py
+
+ rm -f ${pkgdir}/usr/share/info/dir
+ gzip -9nf ${pkgdir}/usr/share/info/*
+ rm -r ${pkgdir}/usr/bin/run_test
+}
+