wok-6.x annotate asterisk-googletranslate/receipt @ rev 17359

Add asterisk-googletranslate
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Nov 18 21:51:18 2014 +0100 (2014-11-18)
parents
children 7cfc423aaa00
rev   line source
pascal@17359 1 # SliTaz package receipt.
pascal@17359 2
pascal@17359 3 PACKAGE="asterisk-googletranslate"
pascal@17359 4 VERSION="0.2"
pascal@17359 5 CATEGORY="misc"
pascal@17359 6 SHORT_DESC="Text translation for Asterisk"
pascal@17359 7 WEB_SITE="http://zaf.github.io/asterisk-googletranslate/"
pascal@17359 8 MAINTAINER="pascal.bellard@slitaz.org"
pascal@17359 9 LICENSE="GPL2"
pascal@17359 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@17359 11 WGET_URL="https://github.com/downloads/zaf/$PACKAGE/$TARBALL"
pascal@17359 12
pascal@17359 13 DEPENDS="asterisk perl-libwww perl-libjson perl-io-socket-ssl"
pascal@17359 14 BUILD_DEPENDS="wget"
pascal@17359 15
pascal@17359 16 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@17359 17 genpkg_rules()
pascal@17359 18 {
pascal@17359 19 mkdir -p $fs/usr/bin $fs/var/lib/asterisk/agi-bin
pascal@17359 20 cp -a $src/cli/googletranslate-cli.pl $fs/usr/bin
pascal@17359 21 ln -s googletranslate-cli.pl $fs/usr/bin/googletranslate
pascal@17359 22 cp -a $src/googletranslate.agi $fs/var/lib/asterisk/agi-bin/
pascal@17359 23 }