wok-6.x annotate asterisk-speech-recog/receipt @ rev 24299
Update some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jan 15 15:21:40 2022 +0000 (2022-01-15) |
parents | 5ea0ce1cecc0 |
children |
rev | line source |
---|---|
pascal@17358 | 1 # SliTaz package receipt. |
pascal@17358 | 2 |
pascal@17358 | 3 PACKAGE="asterisk-speech-recog" |
pascal@17358 | 4 VERSION="0.6-beta1" |
pascal@17358 | 5 CATEGORY="misc" |
pascal@17358 | 6 SHORT_DESC="Speech recognition for Asterisk" |
pascal@17358 | 7 WEB_SITE="http://zaf.github.io/asterisk-speech-recog/" |
pascal@17358 | 8 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@17358 | 9 LICENSE="GPL2" |
pascal@17358 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@17358 | 11 WGET_URL="https://github.com/zaf/$PACKAGE/archive/v$VERSION.tar.gz" |
pascal@17358 | 12 |
pascal@17358 | 13 DEPENDS="asterisk perl-libwww perl-libjson perl-io-socket-ssl flac" |
pascal@17358 | 14 BUILD_DEPENDS="wget" |
pascal@17358 | 15 |
pascal@24055 | 16 current_version() |
pascal@24055 | 17 { |
pascal@24299 | 18 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \ |
pascal@24055 | 19 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' |
pascal@24055 | 20 } |
pascal@24055 | 21 |
pascal@17358 | 22 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@17358 | 23 genpkg_rules() |
pascal@17358 | 24 { |
pascal@17358 | 25 mkdir -p $fs/usr/bin $fs/var/lib/asterisk/agi-bin |
pascal@17358 | 26 cp -a $src/samples/speech-recog-cli.pl $fs/usr/bin |
pascal@17358 | 27 ln -s speech-recog-cli.pl $fs/usr/bin/speech-recog |
pascal@17358 | 28 cp -a $src/speech-recog.agi $fs/var/lib/asterisk/agi-bin/ |
pascal@17358 | 29 } |