wok-6.x diff asterisk-sound-fr/receipt @ rev 4218
thunar: fix FSH
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Sep 24 12:53:29 2009 +0200 (2009-09-24) |
parents | 37bb75372dba |
children | 920b2fe2e541 |
line diff
1.1 --- a/asterisk-sound-fr/receipt Wed Dec 03 22:03:10 2008 +0000 1.2 +++ b/asterisk-sound-fr/receipt Thu Sep 24 12:53:29 2009 +0200 1.3 @@ -1,37 +1,37 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="asterisk-sound-fr" 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 (fr)." 1.11 MAINTAINER="pascal.bellard@slitaz.org" 1.12 -WEB_SITE="http://www.digium.com/" 1.13 -WANTED="bristuff" 1.14 -DEPENDS="asterisk asterisk-sound" 1.15 +WEB_SITE="http://www.asterisk.org/" 1.16 +TARBALL="asterisk-core-sounds-fr-gsm-$VERSION.tar.gz" 1.17 +WGET_URL="http://downloads.asterisk.org/pub/telephony/sounds/releases/$TARBALL" 1.18 +DEPENDS="asterisk" 1.19 1.20 -# Extract VERSION from WANTED package source 1.21 -get_version() 1.22 +# Rules to configure and make the package. 1.23 +compile_rules() 1.24 { 1.25 - eval $(grep ^AST_VER= $WOK/$WANTED/$WANTED-*/download.sh) 1.26 - VERSION=$WANTED-$AST_VER 1.27 + if [ ! -d $src ]; then 1.28 + lang=${PACKAGE#asterisk-sound-} 1.29 + mkdir -p $src/_pkg/var/lib/asterisk/sounds/$lang 1.30 + for i in *; do 1.31 + case "$i" in 1.32 + $PACKAGE-$VERSION|taz|receipt|process.log);; 1.33 + *) mv $i $src/_pkg/var/lib/asterisk/sounds/$lang;; 1.34 + esac 1.35 + done 1.36 + cd $src/_pkg/var/lib/asterisk/sounds/$lang 1.37 + for i in */ ; do 1.38 + mkdir ../$i 1.39 + ln -s ../$lang/$i ../$i/$lang 1.40 + done 1.41 + fi 1.42 } 1.43 1.44 # Rules to gen a SliTaz package suitable for Tazpkg. 1.45 genpkg_rules() 1.46 { 1.47 - get_version 1.48 - [ -d taz/$PACKAGE-$WANTED/fs ] && \ 1.49 - mv taz/$PACKAGE-$WANTED taz/$PACKAGE-$VERSION 1.50 - _pkg=$(cd $(dirname $src)/$WANTED-*/_pkg ; pwd) 1.51 - while read file; do 1.52 - dir=$(dirname $file) 1.53 - [ -d $fs$dir ] || mkdir -p $fs$dir 1.54 - eval cp -a "$_pkg$file" $fs$dir 1.55 - done < $_pkg/../$PACKAGE.files-list 1.56 - lang=$(ls $fs/var/lib/asterisk/sounds) 1.57 - for i in $fs/var/lib/asterisk/sounds/$lang/*/ ; do 1.58 - dir=$(basename $i) 1.59 - mkdir $fs/var/lib/asterisk/sounds/$dir 1.60 - ln -s ../$lang/$dir $fs/var/lib/asterisk/sounds/$dir/$lang 1.61 - done 1.62 + cp -a $_pkg/* $fs 1.63 }