wok-6.x annotate speech-dispatcher/receipt @ rev 23848
inkscape: update build_depends
author | Richard Dunbar <mojo@slitaz.org> |
---|---|
date | Sun Jun 14 23:18:03 2020 -0400 (2020-06-14) |
parents | 4b5dff92b4ba |
children | 5ea0ce1cecc0 |
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" |
pascal@23624 | 15 BUILD_DEPENDS="alsa-lib-dev libtool dotconf-dev espeak-dev glib-dev \ |
pascal@23624 | 16 libvorbis-dev flac-dev libsndfile-dev pkg-config python-dev texinfo" |
pascal@23624 | 17 SUGGESTED="libvorbis flac" |
paul@4890 | 18 |
paul@4890 | 19 # Rules to configure and make the package. |
paul@4890 | 20 compile_rules() |
paul@4890 | 21 { |
pascal@12655 | 22 # Binutils 2.22 break many packages build without LDFLAGS set correctly. |
pascal@17670 | 23 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries" |
paul@4890 | 24 |
Hans-G?nter@21940 | 25 # tiny patches and fixes 0.6.7 |
Hans-G?nter@21940 | 26 # cd $src/src/python/speechd_config |
Hans-G?nter@21940 | 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 |
Hans-G?nter@21940 | 28 # sed -i 's/6561/6560/g' config.py |
Hans-G?nter@21940 | 29 # cd ../ |
Hans-G?nter@21940 | 30 # sed -i '/speechd_config\/test.wav/d' Makefile.in |
Hans-G?nter@21940 | 31 # sed -i 's|--prefix=${prefix}|--root=`pwd`/_pkg|' Makefile.in |
Hans-G?nter@21940 | 32 # cd ../../ |
al@18086 | 33 |
Hans-G?nter@21940 | 34 autoreconf --install && |
Hans-G?nter@21940 | 35 ./configure \ |
Hans-G?nter@21940 | 36 --prefix=/usr \ |
Hans-G?nter@21940 | 37 --infodir=/usr/share/info \ |
Hans-G?nter@21940 | 38 --mandir=/usr/share/man \ |
Hans-G?nter@21940 | 39 --sysconfdir=/etc \ |
Hans-G?nter@21940 | 40 --with-espeak \ |
Hans-G?nter@21941 | 41 --with-systemdsystemunitdir=no \ |
paul@4890 | 42 $CONFIGURE_ARGS && |
Hans-G?nter@21942 | 43 make -j 1 && |
Hans-G?nter@21940 | 44 make DESTDIR=$DESTDIR install |
paul@4890 | 45 } |
paul@4890 | 46 |
paul@4890 | 47 # Rules to gen a SliTaz package suitable for Tazpkg. |
paul@4890 | 48 genpkg_rules() |
paul@4890 | 49 { |
paul@4890 | 50 mkdir -p $fs/usr/share/sounds/speech-dispatcher |
Hans-G?nter@21940 | 51 |
Hans-G?nter@21940 | 52 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@21940 | 53 cp -a $install/etc $fs |
Hans-G?nter@21940 | 54 cp -a $install/usr/lib $fs/usr |
Hans-G?nter@21940 | 55 cp -a $install/usr/share $fs/usr |
paul@4890 | 56 |
paul@4890 | 57 # copy python stuff |
Hans-G?nter@21941 | 58 # cp -a $src/src/python/_pkg/usr $fs # 0.6.7 |
Hans-G?nter@21944 | 59 cp $src/src/api/python/speechd_config/test.wav \ |
Hans-G?nter@21940 | 60 $fs/usr/share/sounds/speech-dispatcher |
paul@4890 | 61 |
Hans-G?nter@21940 | 62 # remove unneeded libraries |
paul@4890 | 63 rm -rf $fs/usr/share/info |
paul@4890 | 64 rm -rf $fs/usr/lib/*.*a |
paul@4890 | 65 rm -rf $fs/usr/lib/speech-dispatcher/*.*a |
paul@4890 | 66 } |