wok-stable view asterisk-sound/receipt @ rev 9002

asterisk-sound: use $_pkg variable
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Mar 03 15:43:41 2011 +0100 (2011-03-03)
parents 6e3a46ecfae6
children 7c923b0875c2
line source
1 # SliTaz package receipt.
3 PACKAGE="asterisk-sound"
4 VERSION="1.4.16"
5 CATEGORY="misc"
6 SHORT_DESC="Open Source PBX and telephony toolkit sound files (en)."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 WEB_SITE="http://www.asterisk.org/"
9 TARBALL="asterisk-core-sounds-en-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 mkdir -p $_pkg/var/lib/asterisk/sounds
18 for i in *; do
19 case "$i" in
20 $PACKAGE-$VERSION|taz|receipt|process.log);;
21 *) mv $i $_pkg/var/lib/asterisk/sounds;;
22 esac
23 done
24 fi
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 cp -a $_pkg/* $fs
31 }