wok-current annotate asterisk-sound-fr/receipt @ rev 3085
slitaz-doc: Fix few typo in receipt...
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat May 16 01:05:11 2009 +0200 (2009-05-16) |
parents | 03a799424aaa |
children | 6e3a46ecfae6 |
rev | line source |
---|---|
pascal@1187 | 1 # SliTaz package receipt. |
pascal@1187 | 2 |
pascal@1187 | 3 PACKAGE="asterisk-sound-fr" |
pascal@1327 | 4 VERSION="bristuff" |
pascal@1423 | 5 CATEGORY="misc" |
pascal@1187 | 6 SHORT_DESC="Open Source PBX and telephony toolkit sound files (fr)." |
pascal@1187 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@1187 | 8 WEB_SITE="http://www.digium.com/" |
pascal@1187 | 9 WANTED="bristuff" |
pascal@1187 | 10 DEPENDS="asterisk asterisk-sound" |
pascal@1187 | 11 |
pascal@1187 | 12 # Extract VERSION from WANTED package source |
pascal@1187 | 13 get_version() |
pascal@1187 | 14 { |
pascal@1187 | 15 eval $(grep ^AST_VER= $WOK/$WANTED/$WANTED-*/download.sh) |
pascal@1327 | 16 VERSION=$WANTED-$AST_VER |
pascal@1187 | 17 } |
pascal@1187 | 18 |
pascal@1187 | 19 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1187 | 20 genpkg_rules() |
pascal@1187 | 21 { |
pascal@1327 | 22 get_version |
pascal@1327 | 23 [ -d taz/$PACKAGE-$WANTED/fs ] && \ |
pascal@1327 | 24 mv taz/$PACKAGE-$WANTED taz/$PACKAGE-$VERSION |
pascal@1187 | 25 _pkg=$(cd $(dirname $src)/$WANTED-*/_pkg ; pwd) |
pascal@1187 | 26 while read file; do |
pascal@1187 | 27 dir=$(dirname $file) |
pascal@1187 | 28 [ -d $fs$dir ] || mkdir -p $fs$dir |
pascal@1187 | 29 eval cp -a "$_pkg$file" $fs$dir |
pascal@1187 | 30 done < $_pkg/../$PACKAGE.files-list |
pascal@1808 | 31 lang=$(ls $fs/var/lib/asterisk/sounds) |
pascal@1808 | 32 for i in $fs/var/lib/asterisk/sounds/$lang/*/ ; do |
pascal@1808 | 33 dir=$(basename $i) |
pascal@1808 | 34 mkdir $fs/var/lib/asterisk/sounds/$dir |
pascal@1808 | 35 ln -s ../$lang/$dir $fs/var/lib/asterisk/sounds/$dir/$lang |
pascal@1808 | 36 done |
pascal@1187 | 37 } |