wok rev 4117

Up asterisk-sound, asterisk-sound-fr (1.4.16)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Sep 19 23:08:58 2009 +0200 (2009-09-19)
parents 3fc576c9937b
children 7b1634394048
files asterisk-sound-fr/receipt asterisk-sound/receipt
line diff
     1.1 --- a/asterisk-sound-fr/receipt	Sat Sep 19 22:47:05 2009 +0200
     1.2 +++ b/asterisk-sound-fr/receipt	Sat Sep 19 23:08:58 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  }
     2.1 --- a/asterisk-sound/receipt	Sat Sep 19 22:47:05 2009 +0200
     2.2 +++ b/asterisk-sound/receipt	Sat Sep 19 23:08:58 2009 +0200
     2.3 @@ -1,32 +1,31 @@
     2.4  # SliTaz package receipt.
     2.5  
     2.6  PACKAGE="asterisk-sound"
     2.7 -VERSION="bristuff"
     2.8 +VERSION="1.4.16"
     2.9  CATEGORY="misc"
    2.10  SHORT_DESC="Open Source PBX and telephony toolkit sound files (en)."
    2.11  MAINTAINER="pascal.bellard@slitaz.org"
    2.12 -WEB_SITE="http://www.digium.com/"
    2.13 -WANTED="bristuff"
    2.14 +WEB_SITE="http://www.asterisk.org/"
    2.15 +TARBALL="asterisk-core-sounds-en-gsm-$VERSION.tar.gz"
    2.16 +WGET_URL="http://downloads.asterisk.org/pub/telephony/sounds/releases/$TARBALL"
    2.17  DEPENDS="asterisk"
    2.18  
    2.19 -# Extract VERSION from WANTED package source
    2.20 -get_version()
    2.21 +# Rules to configure and make the package.
    2.22 +compile_rules()
    2.23  {
    2.24 -	eval $(grep ^AST_VER= $WOK/$WANTED/$WANTED-*/download.sh)
    2.25 -	VERSION=$WANTED-$AST_VER
    2.26 +	if [ ! -d $src ]; then
    2.27 +		mkdir -p $src/_pkg/var/lib/asterisk/sounds
    2.28 +		for i in *; do
    2.29 +			case "$i" in
    2.30 +			$PACKAGE-$VERSION|taz|receipt|process.log);;
    2.31 +			*) mv $i $src/_pkg/var/lib/asterisk/sounds;;
    2.32 +			esac
    2.33 +		done
    2.34 +	fi
    2.35  }
    2.36  
    2.37  # Rules to gen a SliTaz package suitable for Tazpkg.
    2.38  genpkg_rules()
    2.39  {
    2.40 -	get_version
    2.41 -	[ -d taz/$PACKAGE-$WANTED/fs ] && \
    2.42 -		mv taz/$PACKAGE-$WANTED taz/$PACKAGE-$VERSION
    2.43 -	_pkg=$(cd $(dirname $src)/$WANTED-*/_pkg ; pwd)
    2.44 -	while read file; do
    2.45 -		dir=$(dirname $file)
    2.46 -		[ -d $fs$dir ] || mkdir -p $fs$dir
    2.47 -		eval cp -a "$_pkg$file" $fs$dir
    2.48 -	done < $_pkg/../$PACKAGE.files-list
    2.49 -	rm -rf $fs/var/lib/asterisk/sounds/??/
    2.50 +	cp -a $_pkg/* $fs
    2.51  }