wok-6.x view asterisk-dev/receipt @ rev 1263
Fix: Set executable mode to xft-config.
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Fri Aug 15 09:10:28 2008 +0200 (2008-08-15) |
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 }