wok-4.x diff asterisk-sound/receipt @ rev 1187
Add bristuff
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Aug 04 13:34:35 2008 +0000 (2008-08-04) |
parents | |
children | 1e551bfbe671 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/asterisk-sound/receipt Mon Aug 04 13:34:35 2008 +0000 1.3 @@ -0,0 +1,34 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="asterisk-sound" 1.7 +VERSION= 1.8 +CATEGORY="system" 1.9 +SHORT_DESC="Open Source PBX and telephony toolkit sound files (en)." 1.10 +MAINTAINER="pascal.bellard@slitaz.org" 1.11 +WEB_SITE="http://www.digium.com/" 1.12 +WANTED="bristuff" 1.13 +DEPENDS="asterisk" 1.14 + 1.15 +# Extract VERSION from WANTED package source 1.16 +get_version() 1.17 +{ 1.18 + eval $(grep ^AST_VER= $WOK/$WANTED/$WANTED-*/download.sh) 1.19 + VERSION=$AST_VER 1.20 +} 1.21 + 1.22 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.23 +genpkg_rules() 1.24 +{ 1.25 + if [ -d taz/$PACKAGE-/fs ]; then 1.26 + get_version 1.27 + sed -i "s/^VERSION=.*/VERSION=\"$VERSION\"/" receipt 1.28 + mv taz/$PACKAGE- taz/$PACKAGE-$VERSION 1.29 + fi 1.30 + _pkg=$(cd $(dirname $src)/$WANTED-*/_pkg ; pwd) 1.31 + while read file; do 1.32 + dir=$(dirname $file) 1.33 + [ -d $fs$dir ] || mkdir -p $fs$dir 1.34 + eval cp -a "$_pkg$file" $fs$dir 1.35 + done < $_pkg/../$PACKAGE.files-list 1.36 + rm -rf $fs/var/lib/asterisk/sounds/??/ 1.37 +}