wok diff zaptel-perl/receipt @ rev 1275
Add: libwnck (Window Navigator Construction Kit)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon Aug 18 14:09:31 2008 +0200 (2008-08-18) |
parents | |
children | 1e551bfbe671 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/zaptel-perl/receipt Mon Aug 18 14:09:31 2008 +0200 1.3 @@ -0,0 +1,33 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="zaptel-perl" 1.7 +VERSION= 1.8 +CATEGORY="system" 1.9 +SHORT_DESC="Zapata Telephony Interface Driver, PERL modules." 1.10 +MAINTAINER="pascal.bellard@slitaz.org" 1.11 +WEB_SITE="http://www.digium.com/" 1.12 +DEPENDS="zaptel" 1.13 +WANTED="bristuff" 1.14 + 1.15 +# Extract VERSION from WANTED package source 1.16 +get_version() 1.17 +{ 1.18 + eval $(grep ^ZAP_VER= $WOK/$WANTED/$WANTED-*/download.sh) 1.19 + VERSION=$ZAP_VER 1.20 +} 1.21 + 1.22 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.23 +genpkg_rules() 1.24 +{ 1.25 + if [ -d taz/$PACKAGE-/fs ]; then 1.26 + get_version 1.27 + sed -i "s/^VERSION=.*/VERSION=\"$VERSION\"/" receipt 1.28 + mv taz/$PACKAGE- taz/$PACKAGE-$VERSION 1.29 + fi 1.30 + _pkg=$(cd $(dirname $src)/$WANTED-*/_pkg ; pwd) 1.31 + while read file; do 1.32 + dir=$(dirname $file) 1.33 + [ -d $fs$dir ] || mkdir -p $fs$dir 1.34 + eval cp -a "$_pkg$file" $fs$dir 1.35 + done < $_pkg/../$PACKAGE.files-list 1.36 +}