wok annotate asterisk-dev/receipt @ rev 3811
Add: python-httplib2 (0.5.0)
author | Claudinei Pereira <claudinei@slitaz.org> |
---|---|
date | Wed Aug 05 23:25:24 2009 +0000 (2009-08-05) |
parents | 1e551bfbe671 |
children | 191da58082eb |
rev | line source |
---|---|
pascal@1187 | 1 # SliTaz package receipt. |
pascal@1187 | 2 |
pascal@1187 | 3 PACKAGE="asterisk-dev" |
pascal@1327 | 4 VERSION="bristuff" |
pascal@1423 | 5 CATEGORY="development" |
pascal@1187 | 6 SHORT_DESC="Open Source PBX and telephony toolkit development files." |
pascal@1187 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@1187 | 8 WEB_SITE="http://www.digium.com/" |
pascal@1187 | 9 WANTED="bristuff" |
pascal@1187 | 10 |
pascal@1187 | 11 # Extract VERSION from WANTED package source |
pascal@1187 | 12 get_version() |
pascal@1187 | 13 { |
pascal@1187 | 14 eval $(grep ^AST_VER= $WOK/$WANTED/$WANTED-*/download.sh) |
pascal@1327 | 15 VERSION=$WANTED-$AST_VER |
pascal@1187 | 16 } |
pascal@1187 | 17 |
pascal@1187 | 18 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1187 | 19 genpkg_rules() |
pascal@1187 | 20 { |
pascal@1327 | 21 get_version |
pascal@1327 | 22 [ -d taz/$PACKAGE-$WANTED/fs ] && \ |
pascal@1327 | 23 mv taz/$PACKAGE-$WANTED taz/$PACKAGE-$VERSION |
pascal@1187 | 24 _pkg=$(cd $(dirname $src)/$WANTED-*/_pkg ; pwd) |
pascal@1187 | 25 while read file; do |
pascal@1187 | 26 dir=$(dirname $file) |
pascal@1187 | 27 [ -d $fs$dir ] || mkdir -p $fs$dir |
pascal@1187 | 28 eval cp -a "$_pkg$file" $fs$dir |
pascal@1187 | 29 done < $_pkg/../$PACKAGE.files-list |
pascal@1187 | 30 } |