wok-current annotate linux-media/receipt @ rev 14175

Up linux (3.2.40)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Mar 10 13:32:17 2013 +0100 (2013-03-10)
parents 6f536abe4f0b
children ad59999b3fce
rev   line source
pankso@12285 1 # SliTaz package receipt.
pankso@12285 2
pankso@12285 3 PACKAGE="linux-media"
pascal@14175 4 VERSION="3.2.40"
pankso@12285 5 BASEVER="${VERSION:0:3}"
pankso@12285 6 CATEGORY="base-system"
pankso@12285 7 SHORT_DESC="The Linux kernel media modules."
pankso@12285 8 MAINTAINER="slaxemulator@gmail.com"
pankso@12285 9 DEPENDS="linux"
pankso@12285 10 WANTED="linux"
pankso@12285 11 WEB_SITE="http://kernel.org"
pankso@12285 12
pankso@12285 13 # Modules paths and list
pankso@12285 14 MOD_PATH="lib/modules/$BASEVER-slitaz/kernel"
pankso@12285 15 MODULES="drivers/media drivers/mfd"
pankso@12285 16
pankso@12285 17 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@12285 18 genpkg_rules()
pankso@12285 19 {
pankso@12285 20 mkdir -p ${fs}/${MOD_PATH}
pankso@12285 21 for module in $MODULES
pankso@12285 22 do
pankso@12285 23 dir=$MOD_PATH/$(dirname $module)
pankso@12285 24 [ -d $fs/$dir ] || mkdir -p $fs/$dir
pankso@12285 25 cp -a $_pkg/$MOD_PATH/$module $fs/$dir
pankso@12285 26 done
pankso@12285 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
pankso@12285 31 fi
pankso@12285 32 done
pankso@12285 33 }
pankso@12285 34
pankso@12285 35 # Post install/remove commands for Tazpkg.
pankso@12285 36 post_install()
pankso@12285 37 {
pankso@12285 38 chroot "$1/" depmod -a $BASEVER-slitaz
pankso@12285 39 }
pankso@12285 40
pankso@12285 41 post_remove()
pankso@12285 42 {
pankso@12285 43 chroot "$1/" depmod -a $BASEVER-slitaz
pankso@12285 44 }