wok-6.x diff zaptel-perl/receipt @ rev 1327

bristuff related packages: VERSION="bristuff"
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Aug 31 08:40:47 2008 +0000 (2008-08-31)
parents d659eda8a095
children 03a799424aaa
line diff
     1.1 --- a/zaptel-perl/receipt	Mon Aug 04 13:34:35 2008 +0000
     1.2 +++ b/zaptel-perl/receipt	Sun Aug 31 08:40:47 2008 +0000
     1.3 @@ -1,7 +1,7 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="zaptel-perl"
     1.7 -VERSION=
     1.8 +VERSION="bristuff"
     1.9  CATEGORY="system"
    1.10  SHORT_DESC="Zapata Telephony Interface Driver, PERL modules."
    1.11  MAINTAINER="pascal.bellard@slitaz.org"
    1.12 @@ -13,17 +13,15 @@
    1.13  get_version()
    1.14  {
    1.15          eval $(grep ^ZAP_VER= $WOK/$WANTED/$WANTED-*/download.sh)
    1.16 -	VERSION=$ZAP_VER
    1.17 +	VERSION=$WANTED-$ZAP_VER
    1.18  }
    1.19  
    1.20  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.21  genpkg_rules()
    1.22  {
    1.23 -	if [ -d taz/$PACKAGE-/fs ]; then
    1.24 -		get_version
    1.25 -		sed -i "s/^VERSION=.*/VERSION=\"$VERSION\"/" receipt
    1.26 -		mv taz/$PACKAGE- taz/$PACKAGE-$VERSION
    1.27 -	fi
    1.28 +	get_version
    1.29 +	[ -d taz/$PACKAGE-$WANTED/fs ] && \
    1.30 +		mv taz/$PACKAGE-$WANTED taz/$PACKAGE-$VERSION
    1.31  	_pkg=$(cd $(dirname $src)/$WANTED-*/_pkg ; pwd)
    1.32  	while read file; do
    1.33  		dir=$(dirname $file)