wok-current view asterisk-googletranslate/receipt @ rev 24577
updated ftgl and ftgl-dev (2.1.3-rc5 -> 2.4.0)
author | Hans-G?nter Theisgen |
---|---|
date | Sun Feb 27 11:03:39 2022 +0100 (2022-02-27) |
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 }