wok-next rev 9042

asterisk-sound*: fix compile_rules
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Mar 04 08:36:11 2011 +0100 (2011-03-04)
parents 714ffbad1e10
children 640ddbff13b4
files asterisk-sound-fr/receipt asterisk-sound/receipt
line diff
     1.1 --- a/asterisk-sound-fr/receipt	Fri Mar 04 08:17:31 2011 +0100
     1.2 +++ b/asterisk-sound-fr/receipt	Fri Mar 04 08:36:11 2011 +0100
     1.3 @@ -13,15 +13,11 @@
     1.4  # Rules to configure and make the package.
     1.5  compile_rules()
     1.6  {
     1.7 -	if [ ! -d $_pkg/var ]; then
     1.8 +	if [ ! -d $DESTDIR/var ]; then
     1.9 +		cd $src
    1.10  		lang=${PACKAGE#asterisk-sound-}
    1.11 -		mkdir -p $_pkg/var/lib/asterisk/sounds/$lang
    1.12 -		for i in *; do
    1.13 -			case "$i" in
    1.14 -			$PACKAGE-$VERSION|taz|receipt|process.log);;
    1.15 -			*) mv $i $_pkg/var/lib/asterisk/sounds/$lang;;
    1.16 -			esac
    1.17 -		done
    1.18 +		mkdir -p $DESTDIR/var/lib/asterisk/sounds/$lang
    1.19 +		mv * $DESTDIR/var/lib/asterisk/sounds/$lang
    1.20  		cd $_pkg/var/lib/asterisk/sounds/$lang
    1.21  		for i in */ ; do
    1.22  			mkdir ../$i
     2.1 --- a/asterisk-sound/receipt	Fri Mar 04 08:17:31 2011 +0100
     2.2 +++ b/asterisk-sound/receipt	Fri Mar 04 08:36:11 2011 +0100
     2.3 @@ -13,14 +13,10 @@
     2.4  # Rules to configure and make the package.
     2.5  compile_rules()
     2.6  {
     2.7 -	if [ ! -d $_pkg/var ]; then
     2.8 -		mkdir -p $_pkg/var/lib/asterisk/sounds
     2.9 -		for i in *; do
    2.10 -			case "$i" in
    2.11 -			$PACKAGE-$VERSION|taz|receipt|process.log);;
    2.12 -			*) mv $i $_pkg/var/lib/asterisk/sounds;;
    2.13 -			esac
    2.14 -		done
    2.15 +	if [ ! -d $DESTDIR/var ]; then
    2.16 +		cd $src
    2.17 +		mkdir -p $DESTDIR/var/lib/asterisk/sounds
    2.18 +		mv * $DESTDIR/var/lib/asterisk/sounds
    2.19  	fi
    2.20  }
    2.21