wok view asterisk-dev/receipt @ rev 1285

slitaz-loram: typo in loram.extract
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Aug 20 15:13:11 2008 +0000 (2008-08-20)
parents
children 1e551bfbe671
line source
1 # SliTaz package receipt.
3 PACKAGE="asterisk-dev"
4 VERSION=
5 CATEGORY="system"
6 SHORT_DESC="Open Source PBX and telephony toolkit development files."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 WEB_SITE="http://www.digium.com/"
9 WANTED="bristuff"
11 # Extract VERSION from WANTED package source
12 get_version()
13 {
14 eval $(grep ^AST_VER= $WOK/$WANTED/$WANTED-*/download.sh)
15 VERSION=$AST_VER
16 }
18 # Rules to gen a SliTaz package suitable for Tazpkg.
19 genpkg_rules()
20 {
21 if [ -d taz/$PACKAGE-/fs ]; then
22 get_version
23 sed -i "s/^VERSION=.*/VERSION=\"$VERSION\"/" receipt
24 mv taz/$PACKAGE- taz/$PACKAGE-$VERSION
25 fi
26 _pkg=$(cd $(dirname $src)/$WANTED-*/_pkg ; pwd)
27 while read file; do
28 dir=$(dirname $file)
29 [ -d $fs$dir ] || mkdir -p $fs$dir
30 eval cp -a "$_pkg$file" $fs$dir
31 done < $_pkg/../$PACKAGE.files-list
32 }