wok-next view asterisk-sound-fr/receipt @ rev 9019

linmodem-hsfmodem: relax patch name (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Mar 03 21:01:37 2011 +0100 (2011-03-03)
parents 6e3a46ecfae6
children 7c923b0875c2
line source
1 # SliTaz package receipt.
3 PACKAGE="asterisk-sound-fr"
4 VERSION="1.4.16"
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.asterisk.org/"
9 TARBALL="asterisk-core-sounds-fr-gsm-$VERSION.tar.gz"
10 WGET_URL="http://downloads.asterisk.org/pub/telephony/sounds/releases/$TARBALL"
11 DEPENDS="asterisk"
13 # Rules to configure and make the package.
14 compile_rules()
15 {
16 if [ ! -d $_pkg/var ]; then
17 lang=${PACKAGE#asterisk-sound-}
18 mkdir -p $_pkg/var/lib/asterisk/sounds/$lang
19 for i in *; do
20 case "$i" in
21 $PACKAGE-$VERSION|taz|receipt|process.log);;
22 *) mv $i $_pkg/var/lib/asterisk/sounds/$lang;;
23 esac
24 done
25 cd $_pkg/var/lib/asterisk/sounds/$lang
26 for i in */ ; do
27 mkdir ../$i
28 ln -s ../$lang/$i ../$i/$lang
29 done
30 fi
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 cp -a $_pkg/* $fs
37 }