wok-6.x diff linux-drm/receipt @ rev 13414
Up fox,adie,pathfinder,calculator (1.6.46)
author | Samuel Trassare <samuel_trassare@yahoo.com> |
---|---|
date | Mon Oct 01 06:41:31 2012 +0000 (2012-10-01) |
parents | d1768332cee0 |
children | 416fab3c90c0 |
line diff
1.1 --- a/linux-drm/receipt Sun May 08 09:01:58 2011 +0000 1.2 +++ b/linux-drm/receipt Mon Oct 01 06:41:31 2012 +0000 1.3 @@ -1,7 +1,8 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="linux-drm" 1.7 -VERSION="2.6.37" 1.8 +VERSION="3.2.14" 1.9 +BASEVER="${VERSION:0:3}" 1.10 CATEGORY="base-system" 1.11 SHORT_DESC="The Linux kernel drm module." 1.12 MAINTAINER="devel@slitaz.org" 1.13 @@ -13,7 +14,7 @@ 1.14 genpkg_rules() 1.15 { 1.16 local path 1.17 - path=lib/modules/$VERSION-slitaz/kernel 1.18 + path=lib/modules/$BASEVER-slitaz/kernel 1.19 mkdir -p $fs/$path 1.20 export src 1.21 export _pkg 1.22 @@ -23,26 +24,26 @@ 1.23 cp -a $_pkg/$path/$module $fs/$dir 1.24 done 1.25 1.26 - for i in $(cat $wanted_stuff/modules-$VERSION.list); do 1.27 - if [ $fs/lib/modules/$VERSION-slitaz/kernel/$i ]; then 1.28 - rm -f $fs/lib/modules/$VERSION-slitaz/kernel/$i 1.29 + for i in $(cat $wanted_stuff/modules.list); do 1.30 + if [ -f $fs/$path/$i ]; then 1.31 + rm -f $fs/$path/$i 1.32 fi 1.33 done 1.34 1.35 # remove drivers/char/agp kernel modules cause there in linux-agp package 1.36 - if [ -d $fs/lib/modules/$VERSION-slitaz/kernel/drivers/char/agp ]; then 1.37 - rm -rf $fs/lib/modules/$VERSION-slitaz/kernel/drivers/char/agp 1.38 + if [ -d $fs/$path/drivers/char/agp ]; then 1.39 + rm -rf $fs/$path/drivers/char/agp 1.40 fi 1.41 } 1.42 1.43 # Post install/remove commands for Tazpkg. 1.44 post_install() 1.45 { 1.46 - chroot "$1/" depmod -a $VERSION-slitaz 1.47 + chroot "$1/" depmod -a $BASEVER-slitaz 1.48 } 1.49 1.50 post_remove() 1.51 { 1.52 - chroot "$1/" depmod -a $VERSION-slitaz 1.53 + chroot "$1/" depmod -a $BASEVER-slitaz 1.54 } 1.55