wok-4.x view asterisk-dev/receipt @ rev 2176

Add h8300-binutils, h8300-gcc3 and h8300-gdb (thanks Matthew)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 08 16:52:33 2009 +0000 (2009-02-08)
parents 1e551bfbe671
children 191da58082eb
line source
1 # SliTaz package receipt.
3 PACKAGE="asterisk-dev"
4 VERSION="bristuff"
5 CATEGORY="development"
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=$WANTED-$AST_VER
16 }
18 # Rules to gen a SliTaz package suitable for Tazpkg.
19 genpkg_rules()
20 {
21 get_version
22 [ -d taz/$PACKAGE-$WANTED/fs ] && \
23 mv taz/$PACKAGE-$WANTED taz/$PACKAGE-$VERSION
24 _pkg=$(cd $(dirname $src)/$WANTED-*/_pkg ; pwd)
25 while read file; do
26 dir=$(dirname $file)
27 [ -d $fs$dir ] || mkdir -p $fs$dir
28 eval cp -a "$_pkg$file" $fs$dir
29 done < $_pkg/../$PACKAGE.files-list
30 }