wok-next diff asterisk-dev/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-dev/receipt Mon Aug 04 13:34:35 2008 +0000 1.3 @@ -0,0 +1,32 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="asterisk-dev" 1.7 +VERSION= 1.8 +CATEGORY="system" 1.9 +SHORT_DESC="Open Source PBX and telephony toolkit development files." 1.10 +MAINTAINER="pascal.bellard@slitaz.org" 1.11 +WEB_SITE="http://www.digium.com/" 1.12 +WANTED="bristuff" 1.13 + 1.14 +# Extract VERSION from WANTED package source 1.15 +get_version() 1.16 +{ 1.17 + eval $(grep ^AST_VER= $WOK/$WANTED/$WANTED-*/download.sh) 1.18 + VERSION=$AST_VER 1.19 +} 1.20 + 1.21 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.22 +genpkg_rules() 1.23 +{ 1.24 + if [ -d taz/$PACKAGE-/fs ]; then 1.25 + get_version 1.26 + sed -i "s/^VERSION=.*/VERSION=\"$VERSION\"/" receipt 1.27 + mv taz/$PACKAGE- taz/$PACKAGE-$VERSION 1.28 + fi 1.29 + _pkg=$(cd $(dirname $src)/$WANTED-*/_pkg ; pwd) 1.30 + while read file; do 1.31 + dir=$(dirname $file) 1.32 + [ -d $fs$dir ] || mkdir -p $fs$dir 1.33 + eval cp -a "$_pkg$file" $fs$dir 1.34 + done < $_pkg/../$PACKAGE.files-list 1.35 +}