wok-4.x diff zaptel/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 | c343c644ab92 |
children | 1fb624a36c57 |
line diff
1.1 --- a/zaptel/receipt Wed Aug 20 15:28:36 2008 +0000 1.2 +++ b/zaptel/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" 1.7 -VERSION= 1.8 +VERSION="bristuff" 1.9 CATEGORY="system" 1.10 SHORT_DESC="Zapata Telephony Interface Driver." 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 kver=$(grep "kernel version" ../linux/linux-*/.config) 1.32 kver=${kver##* } 1.33 EXTRAVERSION=_$kver 1.34 @@ -43,7 +41,7 @@ 1.35 $1/$INSTALLED/$PACKAGE/volatile.cpio.gz <<EOT 1.36 etc/zaptel.conf 1.37 EOT 1.38 - depmod -a -b "$1/" $EXTRAVERSION-slitaz 1.39 + depmod -a -b "$1/" 1.40 } 1.41 1.42 post_remove()