wok-6.x view zaptel-dev/receipt @ rev 1313
Add apache
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Aug 27 18:36:44 2008 +0000 (2008-08-27) |
parents | |
children | 1e551bfbe671 |
line source
1 # SliTaz package receipt.
3 PACKAGE="zaptel-dev"
4 VERSION=
5 CATEGORY="system"
6 SHORT_DESC="Zapata Telephony Interface Driver devel 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 ^ZAP_VER= $WOK/$WANTED/$WANTED-*/download.sh)
15 VERSION=$ZAP_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 }