wok-6.x view speech-dispatcher/receipt @ rev 22454
get-palemoon: add tar (magic) and J for .xz (downloaded archive is not bzip2 anymore)
author | Erkan Yilmaz <erkan@slitaz.org> |
---|---|
date | Thu Dec 26 11:01:01 2019 +0000 (2019-12-26) |
parents | 6e69e3b95192 |
children | c19784df5edf |
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 autoconf dotconf-dev espeak-dev glib-dev \
16 libsndfile-dev pkg-config python-dev texinfo"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 # Binutils 2.22 break many packages build without LDFLAGS set correctly.
22 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries"
24 # tiny patches and fixes 0.6.7
25 # cd $src/src/python/speechd_config
26 # sed -i 's/wavfile = paths.SPD_SOUND_DATA_PATH + "test.wav"/wavfile = os.path.join(paths.SPD_SOUND_DATA_PATH,"test.wav")/' config.py
27 # sed -i 's/6561/6560/g' config.py
28 # cd ../
29 # sed -i '/speechd_config\/test.wav/d' Makefile.in
30 # sed -i 's|--prefix=${prefix}|--root=`pwd`/_pkg|' Makefile.in
31 # cd ../../
33 autoreconf --install &&
34 ./configure \
35 --prefix=/usr \
36 --infodir=/usr/share/info \
37 --mandir=/usr/share/man \
38 --sysconfdir=/etc \
39 --with-espeak \
40 --with-systemdsystemunitdir=no \
41 $CONFIGURE_ARGS &&
42 make -j 1 &&
43 make DESTDIR=$DESTDIR install
44 }
46 # Rules to gen a SliTaz package suitable for Tazpkg.
47 genpkg_rules()
48 {
49 mkdir -p $fs/usr/share/sounds/speech-dispatcher
51 cp -a $install/usr/bin $fs/usr
52 cp -a $install/etc $fs
53 cp -a $install/usr/lib $fs/usr
54 cp -a $install/usr/share $fs/usr
56 # copy python stuff
57 # cp -a $src/src/python/_pkg/usr $fs # 0.6.7
58 cp $src/src/api/python/speechd_config/test.wav \
59 $fs/usr/share/sounds/speech-dispatcher
61 # remove unneeded libraries
62 rm -rf $fs/usr/share/info
63 rm -rf $fs/usr/lib/*.*a
64 rm -rf $fs/usr/lib/speech-dispatcher/*.*a
65 }