Here is an updated patch that also saves space by dropping support for
mbrola voices (non-free) and test langs (lojban & ancient greek...).
Samuel
diff -ur espeak-1.40.02/debian/control
/home/samy/brl/speech/espeak-1.40.02/debian/control
--- espeak-1.40.02/debian/control 2009-04-04 14:17:41.000000000 +0200
+++ espeak-1.40.02/debian/control 2009-04-04 14:45:40.000000000 +0200
@@ -42,6 +42,14 @@
languages. This package contains necessary synthesizer data files needed
for the espeak program, and the shared library.
+Package: espeak-data-udeb
+Architecture: any
+XC-Package-Type: udeb
+Description: A multi-lingual software speech synthesizer: speech data files
+ eSpeak is a software speech synthesizer for English, and some other
+ languages. This package contains necessary synthesizer data files needed
+ for the espeak program, and the shared library.
+
Package: libespeak1
Architecture: any
Section: libs
--- espeak-1.40.02/debian/rules 2009-05-03 10:42:25.000000000 +0200
+++ espeak-1.40.02/debian/rules 2009-05-03 10:41:01.000000000 +0200
@@ -62,10 +62,13 @@
cp -r espeak-data $(CURDIR)/debian/espeak-data/usr/share
find $(CURDIR)/debian/espeak-data/usr/share -type f -exec chmod 644 {}
\;
find $(CURDIR)/debian/espeak-data/usr/share -type d -exec chmod 755 {}
\;
+ cp -al $(CURDIR)/debian/espeak-data/usr
$(CURDIR)/debian/espeak-data-udeb
+ rm -fr $(CURDIR)/debian/espeak-data-udeb/usr/share/espeak-data/mbrola*
$(CURDIR)/debian/espeak-data-udeb/usr/share/espeak-data/voices/mb
$(CURDIR)/debian/espeak-data-udeb/usr/share/espeak-data/voices/test
install -m 644 -o root -g root src/$(soname).$(version)
$(CURDIR)/debian/libespeak1/usr/lib/$(soname).$(version)
cd $(CURDIR)/debian/libespeak1/usr/lib && ln -s $(soname).$(version)
$(soname)
cd $(CURDIR)/debian/libespeak1/usr/lib && ln -s $(soname).$(version)
libespeak.so
mv $(CURDIR)/debian/libespeak1/usr/lib/libespeak.so
$(CURDIR)/debian/libespeak-dev/usr/lib
+ install -m 644 -o root -g root src/libespeak.a
$(CURDIR)/debian/libespeak-dev/usr/lib
install -m 644 -o root -g root src/speak_lib.h
$(CURDIR)/debian/libespeak-dev/usr/include/espeak
# Build architecture-independent files here.