summaryrefslogtreecommitdiffstats
path: root/extra/speech-dispatcher/Pkgfile
blob: 51ab760163987465494c83ccf680e41c68ab8ed5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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
# Run on: dotconf

name=speech-dispatcher
version=0.7.1
release=3
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
}