wok-current view speech-dispatcher/receipt @ rev 25529

created recipe for neovim-0.8.3
author Hans-G?nter Theisgen
date Sat Feb 25 14:14:14 2023 +0100 (22 months ago)
parents 5ea0ce1cecc0
children
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 current_version()
20 {
21 wget -O - ${WGET_URL%/arch*} 2>/dev/null | \
22 sed '/releases.tag/!d;s|.*/tag.\(.*\)".*|\1|;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 # Binutils 2.22 break many packages build without LDFLAGS set correctly.
29 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries"
31 # tiny patches and fixes 0.6.7
32 # cd $src/src/python/speechd_config
33 # sed -i 's/wavfile = paths.SPD_SOUND_DATA_PATH + "test.wav"/wavfile = os.path.join(paths.SPD_SOUND_DATA_PATH,"test.wav")/' config.py
34 # sed -i 's/6561/6560/g' config.py
35 # cd ../
36 # sed -i '/speechd_config\/test.wav/d' Makefile.in
37 # sed -i 's|--prefix=${prefix}|--root=`pwd`/_pkg|' Makefile.in
38 # cd ../../
40 autoreconf --install &&
41 ./configure \
42 --prefix=/usr \
43 --infodir=/usr/share/info \
44 --mandir=/usr/share/man \
45 --sysconfdir=/etc \
46 --with-espeak \
47 --with-systemdsystemunitdir=no \
48 $CONFIGURE_ARGS &&
49 make -j 1 &&
50 make DESTDIR=$DESTDIR install
51 }
53 # Rules to gen a SliTaz package suitable for Tazpkg.
54 genpkg_rules()
55 {
56 mkdir -p $fs/usr/share/sounds/speech-dispatcher
58 cp -a $install/usr/bin $fs/usr
59 cp -a $install/etc $fs
60 cp -a $install/usr/lib $fs/usr
61 cp -a $install/usr/share $fs/usr
63 # copy python stuff
64 # cp -a $src/src/python/_pkg/usr $fs # 0.6.7
65 cp $src/src/api/python/speechd_config/test.wav \
66 $fs/usr/share/sounds/speech-dispatcher
68 # remove unneeded libraries
69 rm -rf $fs/usr/share/info
70 rm -rf $fs/usr/lib/*.*a
71 rm -rf $fs/usr/lib/speech-dispatcher/*.*a
72 }