wok-next view speech-dispatcher/receipt @ rev 21722
efivar: typo in post_install
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Sep 01 10:31:46 2020 +0000 (2020-09-01) |
parents | d5aab818505e |
children |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="speech-dispatcher"
4 VERSION="0.6.7"
5 CATEGORY="utilities"
6 SHORT_DESC="Common interface to speech synthesis"
7 MAINTAINER="paul@slitaz.org"
8 LICENSE="LGPL2.1"
9 WEB_SITE="https://freebsoft.org/speechd"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="http://www.freebsoft.org/pub/projects/speechd/$TARBALL"
14 BUILD_DEPENDS="glib-dev alsa-lib-dev dotconf-dev python \
15 python-dev espeak-dev sed espeak dotconf"
17 compile_rules() {
18 # Binutils 2.22 break many packages build without LDFLAGS set correctly.
19 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries"
21 # tiny patches and fixes
22 cd $src/src/python/speechd_config
23 sed -i 's/wavfile = paths.SPD_SOUND_DATA_PATH + "test.wav"/wavfile = os.path.join(paths.SPD_SOUND_DATA_PATH,"test.wav")/' config.py
24 sed -i 's/6561/6560/g' config.py
25 cd ../
26 sed -i '/speechd_config\/test.wav/d' Makefile.in
27 sed -i 's|--prefix=${prefix}|--root=`pwd`/_pkg|' Makefile.in
28 cd ../../
30 ./configure \
31 --with-espeak \
32 $CONFIGURE_ARGS &&
33 fix libtool &&
34 make &&
35 make DESTDIR=$install install
36 }
38 genpkg_rules() {
39 mkdir -p $fs/usr/share/sounds/speech-dispatcher
40 cp -a $install/usr/bin $fs/usr
41 cp -a $install/etc $fs
42 cp -a $install/usr/lib $fs/usr
43 cp -a $install/usr/share $fs/usr
45 # copy python stuff
46 cp -a $src/src/python/_pkg/usr $fs
47 cp $src/src/python/speechd_config/test.wav $fs/usr/share/sounds/speech-dispatcher
49 # remove unneeded libs
50 rm -rf $fs/usr/share/info
51 rm -rf $fs/usr/lib/*.*a
52 rm -rf $fs/usr/lib/speech-dispatcher/*.*a
53 DEPENDS="glib alsa-lib espeak dotconf python libsndfile"
54 }