wok-6.x diff asterisk-sound/receipt @ rev 1411
squirrelmail-*: set CATEGORY
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Sep 25 07:45:36 2008 +0000 (2008-09-25) |
parents | d659eda8a095 |
children | 03a799424aaa |
line diff
1.1 --- a/asterisk-sound/receipt Mon Aug 04 13:34:35 2008 +0000 1.2 +++ b/asterisk-sound/receipt Thu Sep 25 07:45:36 2008 +0000 1.3 @@ -1,7 +1,7 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="asterisk-sound" 1.7 -VERSION= 1.8 +VERSION="bristuff" 1.9 CATEGORY="system" 1.10 SHORT_DESC="Open Source PBX and telephony toolkit sound files (en)." 1.11 MAINTAINER="pascal.bellard@slitaz.org" 1.12 @@ -13,17 +13,15 @@ 1.13 get_version() 1.14 { 1.15 eval $(grep ^AST_VER= $WOK/$WANTED/$WANTED-*/download.sh) 1.16 - VERSION=$AST_VER 1.17 + VERSION=$WANTED-$AST_VER 1.18 } 1.19 1.20 # Rules to gen a SliTaz package suitable for Tazpkg. 1.21 genpkg_rules() 1.22 { 1.23 - if [ -d taz/$PACKAGE-/fs ]; then 1.24 - get_version 1.25 - sed -i "s/^VERSION=.*/VERSION=\"$VERSION\"/" receipt 1.26 - mv taz/$PACKAGE- taz/$PACKAGE-$VERSION 1.27 - fi 1.28 + get_version 1.29 + [ -d taz/$PACKAGE-$WANTED/fs ] && \ 1.30 + mv taz/$PACKAGE-$WANTED taz/$PACKAGE-$VERSION 1.31 _pkg=$(cd $(dirname $src)/$WANTED-*/_pkg ; pwd) 1.32 while read file; do 1.33 dir=$(dirname $file)