# SliTaz package receipt. PACKAGE="asterisk-googletts" VERSION="0.6" CATEGORY="misc" SHORT_DESC="Text to speech for asterisk using Google Translate" WEB_SITE="http://zaf.github.io/asterisk-googletts/" MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL2" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="https://github.com/downloads/zaf/$PACKAGE/$TARBALL" DEPENDS="asterisk perl sox mpg123" BUILD_DEPENDS="wget" # What is the latest version available today? current_version() { wget -O - https://github.com/zaf/asterisk-googletts/tags 2>/dev/null | \ sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q' } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/bin $fs/var/lib/asterisk/agi-bin cp -a $src/cli/googletts-cli.pl $fs/usr/bin ln -s googletts-cli.pl $fs/usr/bin/googletts cp -a $src/googletts.agi $fs/var/lib/asterisk/agi-bin/ }