wok-current annotate speech-dispatcher/receipt @ rev 21941
updated speech-dispatcher again (0.6.7 -> 0.9.1)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Oct 08 14:55:55 2019 +0100 (2019-10-08) |
parents | b8a18614ad1b |
children | 963840ec45c3 |
rev | line source |
---|---|
paul@4890 | 1 # SliTaz package receipt. |
paul@4890 | 2 |
paul@4890 | 3 PACKAGE="speech-dispatcher" |
Hans-G?nter@21940 | 4 VERSION="0.9.1" |
paul@4890 | 5 CATEGORY="utilities" |
paul@4890 | 6 SHORT_DESC="Common interface to speech synthesis." |
paul@4890 | 7 MAINTAINER="paul@slitaz.org" |
pascal@14996 | 8 LICENSE="LGPL2.1" |
Hans-G?nter@21940 | 9 WEB_SITE="https://www.freebsoft.org/speechd" |
Hans-G?nter@21940 | 10 |
pascal@14996 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@21940 | 12 WGET_URL="https://github.com/brailcom/speechd/archive/$VERSION.tar.gz" |
pascal@14996 | 13 |
Hans-G?nter@21940 | 14 DEPENDS="alsa-lib dotconf espeak glib python" |
Hans-G?nter@21940 | 15 BUILD_DEPENDS="alsa-lib-dev autoconf dotconf-dev espeak-dev glib-dev \ |
Hans-G?nter@21940 | 16 libsndfile-dev pkg-config python-dev" |
paul@4890 | 17 |
paul@4890 | 18 # Rules to configure and make the package. |
paul@4890 | 19 compile_rules() |
paul@4890 | 20 { |
pascal@12655 | 21 # Binutils 2.22 break many packages build without LDFLAGS set correctly. |
pascal@17670 | 22 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries" |
paul@4890 | 23 |
Hans-G?nter@21940 | 24 # tiny patches and fixes 0.6.7 |
Hans-G?nter@21940 | 25 # cd $src/src/python/speechd_config |
Hans-G?nter@21940 | 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 |
Hans-G?nter@21940 | 27 # sed -i 's/6561/6560/g' config.py |
Hans-G?nter@21940 | 28 # cd ../ |
Hans-G?nter@21940 | 29 # sed -i '/speechd_config\/test.wav/d' Makefile.in |
Hans-G?nter@21940 | 30 # sed -i 's|--prefix=${prefix}|--root=`pwd`/_pkg|' Makefile.in |
Hans-G?nter@21940 | 31 # cd ../../ |
al@18086 | 32 |
Hans-G?nter@21940 | 33 autoreconf --install && |
Hans-G?nter@21940 | 34 ./configure \ |
Hans-G?nter@21940 | 35 --prefix=/usr \ |
Hans-G?nter@21940 | 36 --infodir=/usr/share/info \ |
Hans-G?nter@21940 | 37 --mandir=/usr/share/man \ |
Hans-G?nter@21940 | 38 --sysconfdir=/etc \ |
Hans-G?nter@21940 | 39 --with-espeak \ |
Hans-G?nter@21941 | 40 --with-systemdsystemunitdir=no \ |
paul@4890 | 41 $CONFIGURE_ARGS && |
Hans-G?nter@21940 | 42 make && |
Hans-G?nter@21940 | 43 make DESTDIR=$DESTDIR install |
paul@4890 | 44 } |
paul@4890 | 45 |
paul@4890 | 46 # Rules to gen a SliTaz package suitable for Tazpkg. |
paul@4890 | 47 genpkg_rules() |
paul@4890 | 48 { |
paul@4890 | 49 mkdir -p $fs/usr/share/sounds/speech-dispatcher |
Hans-G?nter@21940 | 50 |
Hans-G?nter@21940 | 51 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@21940 | 52 cp -a $install/etc $fs |
Hans-G?nter@21940 | 53 cp -a $install/usr/lib $fs/usr |
Hans-G?nter@21940 | 54 cp -a $install/usr/share $fs/usr |
paul@4890 | 55 |
paul@4890 | 56 # copy python stuff |
Hans-G?nter@21941 | 57 # cp -a $src/src/python/_pkg/usr $fs # 0.6.7 |
Hans-G?nter@21940 | 58 cp $src/src/python/speechd_config/test.wav \ |
Hans-G?nter@21940 | 59 $fs/usr/share/sounds/speech-dispatcher |
paul@4890 | 60 |
Hans-G?nter@21940 | 61 # remove unneeded libraries |
paul@4890 | 62 rm -rf $fs/usr/share/info |
paul@4890 | 63 rm -rf $fs/usr/lib/*.*a |
paul@4890 | 64 rm -rf $fs/usr/lib/speech-dispatcher/*.*a |
paul@4890 | 65 } |