wok view speech-dispatcher/receipt @ rev 23696

Up libtcplay (3.3)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Apr 27 09:29:39 2020 +0000 (2020-04-27)
parents 4b5dff92b4ba
children 5ea0ce1cecc0
line source
1 # SliTaz package receipt.
3 PACKAGE="speech-dispatcher"
4 VERSION="0.9.1"
5 CATEGORY="utilities"
6 SHORT_DESC="Common interface to speech synthesis."
7 MAINTAINER="paul@slitaz.org"
8 LICENSE="LGPL2.1"
9 WEB_SITE="https://www.freebsoft.org/speechd"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/brailcom/speechd/archive/$VERSION.tar.gz"
14 DEPENDS="alsa-lib dotconf espeak glib python"
15 BUILD_DEPENDS="alsa-lib-dev libtool dotconf-dev espeak-dev glib-dev \
16 libvorbis-dev flac-dev libsndfile-dev pkg-config python-dev texinfo"
17 SUGGESTED="libvorbis flac"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 # Binutils 2.22 break many packages build without LDFLAGS set correctly.
23 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries"
25 # tiny patches and fixes 0.6.7
26 # cd $src/src/python/speechd_config
27 # sed -i 's/wavfile = paths.SPD_SOUND_DATA_PATH + "test.wav"/wavfile = os.path.join(paths.SPD_SOUND_DATA_PATH,"test.wav")/' config.py
28 # sed -i 's/6561/6560/g' config.py
29 # cd ../
30 # sed -i '/speechd_config\/test.wav/d' Makefile.in
31 # sed -i 's|--prefix=${prefix}|--root=`pwd`/_pkg|' Makefile.in
32 # cd ../../
34 autoreconf --install &&
35 ./configure \
36 --prefix=/usr \
37 --infodir=/usr/share/info \
38 --mandir=/usr/share/man \
39 --sysconfdir=/etc \
40 --with-espeak \
41 --with-systemdsystemunitdir=no \
42 $CONFIGURE_ARGS &&
43 make -j 1 &&
44 make DESTDIR=$DESTDIR install
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 mkdir -p $fs/usr/share/sounds/speech-dispatcher
52 cp -a $install/usr/bin $fs/usr
53 cp -a $install/etc $fs
54 cp -a $install/usr/lib $fs/usr
55 cp -a $install/usr/share $fs/usr
57 # copy python stuff
58 # cp -a $src/src/python/_pkg/usr $fs # 0.6.7
59 cp $src/src/api/python/speechd_config/test.wav \
60 $fs/usr/share/sounds/speech-dispatcher
62 # remove unneeded libraries
63 rm -rf $fs/usr/share/info
64 rm -rf $fs/usr/lib/*.*a
65 rm -rf $fs/usr/lib/speech-dispatcher/*.*a
66 }