wok-6.x view asterisk-googletranslate/receipt @ rev 24569

sokojs: add shrink.sh (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 26 18:46:53 2022 +0000 (2022-02-26)
parents 9135b6cf33bb
children
line source
1 # SliTaz package receipt.
3 PACKAGE="asterisk-googletranslate"
4 VERSION="0.2"
5 CATEGORY="misc"
6 SHORT_DESC="Text translation for Asterisk"
7 WEB_SITE="http://zaf.github.io/asterisk-googletranslate/"
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="GPL2"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WGET_URL="https://github.com/downloads/zaf/$PACKAGE/$TARBALL"
13 DEPENDS="asterisk perl-libwww perl-libjson perl-io-socket-ssl"
14 BUILD_DEPENDS="wget"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - https://github.com/zaf/asterisk-googletranslate/tags 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q'
21 }
23 # Rules to gen a SliTaz package suitable for Tazpkg.
24 genpkg_rules()
25 {
26 mkdir -p $fs/usr/bin $fs/var/lib/asterisk/agi-bin
27 cp -a $src/cli/googletranslate-cli.pl $fs/usr/bin
28 ln -s googletranslate-cli.pl $fs/usr/bin/googletranslate
29 cp -a $src/googletranslate.agi $fs/var/lib/asterisk/agi-bin/
30 }