wok-6.x view asterisk-sound-fr/receipt @ rev 3022

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