# SliTaz package receipt. PACKAGE="espeak" VERSION="1.48.04" CATEGORY="misc" TAGS="speech synthesis" SHORT_DESC="Speech synthesizer." MAINTAINER="erjo@slitaz.org" LICENSE="GPL3" WEB_SITE="https://github.com/espeak-ng/espeak-ng" TARBALL="$PACKAGE-$VERSION-source.zip" #WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" WGET_URL="https://sourceforge.net/projects/$PACKAGE/files/$PACKAGE/$PACKAGE-${VERSION%.*}/$TARBALL" DEPENDS="portaudio jack-audio-connection-kit" BUILD_DEPENDS="$DEPENDS portaudio-dev jack-audio-connection-kit-dev" HOST_ARCH="i486 arm" # What is the latest version available today? current_version() { wget -O - https://github.com/espeak-ng/espeak-ng/releases 2>/dev/null | \ sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' } # Rules to configure and make the package. compile_rules() { cd $src/src # Using portaudio v19 cp portaudio19.h portaudio.h make -j 1 && make DESTDIR=$DESTDIR install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/lib cp -a $install/usr/bin $fs/usr cp -a $install/usr/lib/*.so* $fs/usr/lib cp -a $install/usr/share $fs/usr # Make symlink #cd $fs/usr/lib #ln -s libespeak.so.1.1.42 libespeak.so.1 }