wok annotate speech-dispatcher/receipt @ rev 24055

Add current_version for most github hosted softwares
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jun 08 08:46:05 2021 +0000 (2021-06-08)
parents c19784df5edf
children bf28cc07ebf1
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
pascal@24055 19 current_version()
pascal@24055 20 {
pascal@24055 21 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@24055 22 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
pascal@24055 23 }
pascal@24055 24
paul@4890 25 # Rules to configure and make the package.
paul@4890 26 compile_rules()
paul@4890 27 {
pascal@12655 28 # Binutils 2.22 break many packages build without LDFLAGS set correctly.
pascal@17670 29 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries"
paul@4890 30
Hans-G?nter@21940 31 # tiny patches and fixes 0.6.7
Hans-G?nter@21940 32 # cd $src/src/python/speechd_config
Hans-G?nter@21940 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
Hans-G?nter@21940 34 # sed -i 's/6561/6560/g' config.py
Hans-G?nter@21940 35 # cd ../
Hans-G?nter@21940 36 # sed -i '/speechd_config\/test.wav/d' Makefile.in
Hans-G?nter@21940 37 # sed -i 's|--prefix=${prefix}|--root=`pwd`/_pkg|' Makefile.in
Hans-G?nter@21940 38 # cd ../../
al@18086 39
Hans-G?nter@21940 40 autoreconf --install &&
Hans-G?nter@21940 41 ./configure \
Hans-G?nter@21940 42 --prefix=/usr \
Hans-G?nter@21940 43 --infodir=/usr/share/info \
Hans-G?nter@21940 44 --mandir=/usr/share/man \
Hans-G?nter@21940 45 --sysconfdir=/etc \
Hans-G?nter@21940 46 --with-espeak \
Hans-G?nter@21941 47 --with-systemdsystemunitdir=no \
paul@4890 48 $CONFIGURE_ARGS &&
Hans-G?nter@21942 49 make -j 1 &&
Hans-G?nter@21940 50 make DESTDIR=$DESTDIR install
paul@4890 51 }
paul@4890 52
paul@4890 53 # Rules to gen a SliTaz package suitable for Tazpkg.
paul@4890 54 genpkg_rules()
paul@4890 55 {
paul@4890 56 mkdir -p $fs/usr/share/sounds/speech-dispatcher
Hans-G?nter@21940 57
Hans-G?nter@21940 58 cp -a $install/usr/bin $fs/usr
Hans-G?nter@21940 59 cp -a $install/etc $fs
Hans-G?nter@21940 60 cp -a $install/usr/lib $fs/usr
Hans-G?nter@21940 61 cp -a $install/usr/share $fs/usr
paul@4890 62
paul@4890 63 # copy python stuff
Hans-G?nter@21941 64 # cp -a $src/src/python/_pkg/usr $fs # 0.6.7
Hans-G?nter@21944 65 cp $src/src/api/python/speechd_config/test.wav \
Hans-G?nter@21940 66 $fs/usr/share/sounds/speech-dispatcher
paul@4890 67
Hans-G?nter@21940 68 # remove unneeded libraries
paul@4890 69 rm -rf $fs/usr/share/info
paul@4890 70 rm -rf $fs/usr/lib/*.*a
paul@4890 71 rm -rf $fs/usr/lib/speech-dispatcher/*.*a
paul@4890 72 }