wok-next diff linux-acpi/receipt @ rev 13761
xfce4-taskmanager: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jan 03 11:18:18 2013 +0100 (2013-01-03) |
parents | d1768332cee0 |
children | 416fab3c90c0 |
line diff
1.1 --- a/linux-acpi/receipt Sun May 08 09:01:58 2011 +0000 1.2 +++ b/linux-acpi/receipt Thu Jan 03 11:18:18 2013 +0100 1.3 @@ -1,7 +1,8 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="linux-acpi" 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 acpi modules." 1.12 DEPENDS="linux" 1.13 @@ -13,25 +14,20 @@ 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 - $wanted_stuff/list_modules.sh drivers/acpi drivers/platform/x86/thinkpad_acpi.ko.gz \ 1.23 - drivers/platform/x86/asus-laptop.ko.gz drivers/platform/x86/eeepc-wmi.ko.gz \ 1.24 - drivers/platform/x86/msi-laptop.ko.gz drivers/platform/x86/panasonic-laptop.ko.gz \ 1.25 - drivers/platform/x86/sony-laptop.ko.gz drivers/platform/x86/acer-wmi.ko.gz \ 1.26 - drivers/platform/x86/hp-wmi.ko.gz drivers/platform/x86/wmi.ko.gz \ 1.27 - drivers/platform/x86/classmate-laptop.ko.gz drivers/platform/x86/topstar-laptop.ko.gz | \ 1.28 + $wanted_stuff/list_modules.sh drivers/acpi drivers/platform/x86 | \ 1.29 while read module; do 1.30 dir=$path/$(dirname $module) 1.31 [ -d $fs/$dir ] || mkdir -p $fs/$dir 1.32 cp -a $_pkg/$path/$module $fs/$dir 1.33 done 1.34 1.35 - for i in $(cat $wanted_stuff/modules-$VERSION.list); do 1.36 - if [ $fs/lib/modules/$VERSION-slitaz/kernel/$i ]; then 1.37 - rm -f $fs/lib/modules/$VERSION-slitaz/kernel/$i 1.38 + for i in $(cat $wanted_stuff/modules.list); do 1.39 + if [ -f $fs/$path/$i ]; then 1.40 + rm -f $fs/$path/$i 1.41 fi 1.42 done 1.43 } 1.44 @@ -39,11 +35,11 @@ 1.45 # Post install/remove commands for Tazpkg. 1.46 post_install() 1.47 { 1.48 - chroot "$1/" depmod -a $VERSION-slitaz 1.49 + chroot "$1/" depmod -a $BASEVER-slitaz 1.50 } 1.51 1.52 post_remove() 1.53 { 1.54 - chroot "$1/" depmod -a $VERSION-slitaz 1.55 + chroot "$1/" depmod -a $BASEVER-slitaz 1.56 } 1.57