wok diff linux-acpi/receipt @ rev 18198

Up tazinst (59)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jul 12 19:48:23 2015 +0200 (2015-07-12)
parents eb689de65d7e
children 08cf996a2307
line diff
     1.1 --- a/linux-acpi/receipt	Wed Dec 18 08:40:48 2013 +0000
     1.2 +++ b/linux-acpi/receipt	Sun Jul 12 19:48:23 2015 +0200
     1.3 @@ -2,7 +2,6 @@
     1.4  
     1.5  PACKAGE="linux-acpi"
     1.6  VERSION="3.2.53"
     1.7 -BASEVER="${VERSION:0:3}"
     1.8  CATEGORY="base-system"
     1.9  SHORT_DESC="The Linux kernel acpi modules."
    1.10  DEPENDS="linux"
    1.11 @@ -15,10 +14,9 @@
    1.12  genpkg_rules()
    1.13  {
    1.14      local path
    1.15 -    path=lib/modules/$BASEVER-slitaz/kernel
    1.16 +    path=lib/modules/$VERSION-slitaz/kernel
    1.17      mkdir -p $fs/$path
    1.18 -    export src
    1.19 -    export _pkg
    1.20 +    export src install
    1.21      $wanted_stuff/list_modules.sh drivers/acpi drivers/platform/x86 | \
    1.22      while read module; do
    1.23      	dir=$path/$(dirname $module)
    1.24 @@ -28,19 +26,19 @@
    1.25  
    1.26      for i in $(cat $wanted_stuff/modules.list); do
    1.27          if [ -f $fs/$path/$i ]; then
    1.28 -	    rm -f $fs/$path/$i
    1.29 -	fi
    1.30 +			rm -f $fs/$path/$i
    1.31 +		fi
    1.32      done
    1.33  }
    1.34  
    1.35  # Post install/remove commands for Tazpkg.
    1.36  post_install()
    1.37  {
    1.38 -	chroot "$1/" depmod -a $BASEVER-slitaz
    1.39 +	chroot "$root/" depmod -a $VERSION-slitaz
    1.40  }
    1.41  
    1.42  post_remove()
    1.43  {
    1.44 -	chroot "$1/" depmod -a $BASEVER-slitaz
    1.45 +	chroot "$root/" depmod -a $VERSION-slitaz
    1.46  }
    1.47