wok-current annotate asterisk-googletranslate/receipt @ rev 24418

clamtk: replaced perl-gtk2 by perl-gtk3
author Hans-G?nter Theisgen
date Fri Feb 11 09:25:31 2022 +0100 (2022-02-11)
parents 9135b6cf33bb
children
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@24319 16 # What is the latest version available today?
pascal@24319 17 current_version()
pascal@24319 18 {
pascal@24319 19 wget -O - https://github.com/zaf/asterisk-googletranslate/tags 2>/dev/null | \
pascal@24319 20 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q'
pascal@24319 21 }
pascal@24319 22
pascal@17359 23 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@17359 24 genpkg_rules()
pascal@17359 25 {
pascal@17359 26 mkdir -p $fs/usr/bin $fs/var/lib/asterisk/agi-bin
pascal@17359 27 cp -a $src/cli/googletranslate-cli.pl $fs/usr/bin
pascal@17359 28 ln -s googletranslate-cli.pl $fs/usr/bin/googletranslate
pascal@17359 29 cp -a $src/googletranslate.agi $fs/var/lib/asterisk/agi-bin/
pascal@17359 30 }