wok-next annotate linux-acpi/receipt @ rev 12474

libcanberra: try a fix
author Christophe Lincoln <pankso@slitaz.org>
date Mon Apr 23 13:29:57 2012 +0200 (2012-04-23)
parents d1768332cee0
children 416fab3c90c0
rev   line source
pascal@521 1 # SliTaz package receipt.
pascal@521 2
pascal@521 3 PACKAGE="linux-acpi"
pankso@12285 4 VERSION="3.2.14"
pankso@12285 5 BASEVER="${VERSION:0:3}"
pascal@521 6 CATEGORY="base-system"
pascal@521 7 SHORT_DESC="The Linux kernel acpi modules."
pascal@2926 8 DEPENDS="linux"
pankso@3864 9 MAINTAINER="devel@slitaz.org"
pascal@521 10 WANTED="linux"
pascal@521 11 WEB_SITE="http://www.kernel.org/"
pascal@521 12
pascal@521 13 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@521 14 genpkg_rules()
pascal@521 15 {
pascal@521 16 local path
pankso@12285 17 path=lib/modules/$BASEVER-slitaz/kernel
pascal@521 18 mkdir -p $fs/$path
pascal@886 19 export src
pascal@886 20 export _pkg
pankso@12285 21 $wanted_stuff/list_modules.sh drivers/acpi drivers/platform/x86 | \
pascal@521 22 while read module; do
pascal@521 23 dir=$path/$(dirname $module)
pascal@521 24 [ -d $fs/$dir ] || mkdir -p $fs/$dir
pascal@521 25 cp -a $_pkg/$path/$module $fs/$dir
pascal@886 26 done
slaxemulator@7239 27
pankso@12285 28 for i in $(cat $wanted_stuff/modules.list); do
pankso@12285 29 if [ -f $fs/$path/$i ]; then
pankso@12285 30 rm -f $fs/$path/$i
slaxemulator@7239 31 fi
slaxemulator@7239 32 done
pascal@521 33 }
pascal@521 34
pascal@521 35 # Post install/remove commands for Tazpkg.
pascal@521 36 post_install()
pascal@521 37 {
pankso@12285 38 chroot "$1/" depmod -a $BASEVER-slitaz
pascal@521 39 }
pascal@521 40
pascal@521 41 post_remove()
pascal@521 42 {
pankso@12285 43 chroot "$1/" depmod -a $BASEVER-slitaz
pascal@521 44 }
pascal@521 45