wok-stable view asterisk-sound/receipt @ rev 1190
libboost-dev: typo in build deps
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon Aug 04 20:29:04 2008 +0200 (2008-08-04) |
parents | |
children | 1e551bfbe671 |
line source
1 # SliTaz package receipt.
3 PACKAGE="asterisk-sound"
4 VERSION=
5 CATEGORY="system"
6 SHORT_DESC="Open Source PBX and telephony toolkit sound files (en)."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 WEB_SITE="http://www.digium.com/"
9 WANTED="bristuff"
10 DEPENDS="asterisk"
12 # Extract VERSION from WANTED package source
13 get_version()
14 {
15 eval $(grep ^AST_VER= $WOK/$WANTED/$WANTED-*/download.sh)
16 VERSION=$AST_VER
17 }
19 # Rules to gen a SliTaz package suitable for Tazpkg.
20 genpkg_rules()
21 {
22 if [ -d taz/$PACKAGE-/fs ]; then
23 get_version
24 sed -i "s/^VERSION=.*/VERSION=\"$VERSION\"/" receipt
25 mv taz/$PACKAGE- taz/$PACKAGE-$VERSION
26 fi
27 _pkg=$(cd $(dirname $src)/$WANTED-*/_pkg ; pwd)
28 while read file; do
29 dir=$(dirname $file)
30 [ -d $fs$dir ] || mkdir -p $fs$dir
31 eval cp -a "$_pkg$file" $fs$dir
32 done < $_pkg/../$PACKAGE.files-list
33 rm -rf $fs/var/lib/asterisk/sounds/??/
34 }