wok diff asterisk-sound/receipt @ rev 6072
Add puzzles (again)
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Tue Aug 24 10:04:50 2010 +0200 (2010-08-24) |
parents | 03a799424aaa |
children | 920b2fe2e541 |
line diff
1.1 --- a/asterisk-sound/receipt Fri Sep 26 09:21:16 2008 +0000 1.2 +++ b/asterisk-sound/receipt Tue Aug 24 10:04:50 2010 +0200 1.3 @@ -1,32 +1,31 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="asterisk-sound" 1.7 -VERSION="bristuff" 1.8 +VERSION="1.4.16" 1.9 CATEGORY="misc" 1.10 SHORT_DESC="Open Source PBX and telephony toolkit sound files (en)." 1.11 MAINTAINER="pascal.bellard@slitaz.org" 1.12 -WEB_SITE="http://www.digium.com/" 1.13 -WANTED="bristuff" 1.14 +WEB_SITE="http://www.asterisk.org/" 1.15 +TARBALL="asterisk-core-sounds-en-gsm-$VERSION.tar.gz" 1.16 +WGET_URL="http://downloads.asterisk.org/pub/telephony/sounds/releases/$TARBALL" 1.17 DEPENDS="asterisk" 1.18 1.19 -# Extract VERSION from WANTED package source 1.20 -get_version() 1.21 +# Rules to configure and make the package. 1.22 +compile_rules() 1.23 { 1.24 - eval $(grep ^AST_VER= $WOK/$WANTED/$WANTED-*/download.sh) 1.25 - VERSION=$WANTED-$AST_VER 1.26 + if [ ! -d $src ]; then 1.27 + mkdir -p $src/_pkg/var/lib/asterisk/sounds 1.28 + for i in *; do 1.29 + case "$i" in 1.30 + $PACKAGE-$VERSION|taz|receipt|process.log);; 1.31 + *) mv $i $src/_pkg/var/lib/asterisk/sounds;; 1.32 + esac 1.33 + done 1.34 + fi 1.35 } 1.36 1.37 # Rules to gen a SliTaz package suitable for Tazpkg. 1.38 genpkg_rules() 1.39 { 1.40 - get_version 1.41 - [ -d taz/$PACKAGE-$WANTED/fs ] && \ 1.42 - mv taz/$PACKAGE-$WANTED taz/$PACKAGE-$VERSION 1.43 - _pkg=$(cd $(dirname $src)/$WANTED-*/_pkg ; pwd) 1.44 - while read file; do 1.45 - dir=$(dirname $file) 1.46 - [ -d $fs$dir ] || mkdir -p $fs$dir 1.47 - eval cp -a "$_pkg$file" $fs$dir 1.48 - done < $_pkg/../$PACKAGE.files-list 1.49 - rm -rf $fs/var/lib/asterisk/sounds/??/ 1.50 + cp -a $_pkg/* $fs 1.51 }