wok annotate linux-mmc/receipt @ rev 15393

Up: connman-tools (1.19)
author Dominique Corbex <domcox@slitaz.org>
date Sat Nov 02 20:26:09 2013 +0100 (2013-11-02)
parents 416fab3c90c0
children 051931e905b0
rev   line source
pascal@2162 1 # SliTaz package receipt.
pascal@2162 2
pascal@2162 3 PACKAGE="linux-mmc"
pascal@14175 4 VERSION="3.2.40"
pankso@12285 5 BASEVER="${VERSION:0:3}"
pascal@2162 6 CATEGORY="base-system"
pascal@2162 7 SHORT_DESC="The Linux kernel mmc modules (card reader)."
pankso@3864 8 MAINTAINER="devel@slitaz.org"
pascal@14657 9 LICENSE="GPL2"
pascal@2926 10 DEPENDS="linux"
pascal@2162 11 WANTED="linux"
pascal@2162 12 WEB_SITE="http://www.kernel.org/"
pascal@2162 13
pascal@2162 14 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@2162 15 genpkg_rules()
pascal@2162 16 {
pascal@2162 17 local path
pankso@12285 18 path=lib/modules/$BASEVER-slitaz/kernel
pascal@2162 19 mkdir -p $fs/$path
pascal@2162 20 export src
pascal@2162 21 export _pkg
pascal@12638 22 $wanted_stuff/list_modules.sh drivers/mmc drivers/misc/tifm_7xx1.ko.xz drivers/misc/iwmc3200top/iwmc3200top.ko.xz| \
pascal@2990 23 while read module; do
pascal@2162 24 dir=$path/$(dirname $module)
pascal@2162 25 [ -d $fs/$dir ] || mkdir -p $fs/$dir
pascal@2162 26 cp -a $_pkg/$path/$module $fs/$dir
pascal@2162 27 done
slaxemulator@7239 28
pankso@12285 29 for i in $(cat $wanted_stuff/modules.list); do
pankso@12285 30 if [ -f $fs/$path/$i ]; then
pankso@12285 31 rm -f $fs/$path/$i
slaxemulator@7239 32 fi
slaxemulator@7239 33 done
pascal@2162 34 }
pascal@2162 35
pascal@2162 36 # Post install/remove commands for Tazpkg.
pascal@2162 37 post_install()
pascal@2162 38 {
pankso@12285 39 chroot "$1/" depmod -a $BASEVER-slitaz
pascal@2162 40 }
pascal@2162 41
pascal@2162 42 post_remove()
pascal@2162 43 {
pankso@12285 44 chroot "$1/" depmod -a $BASEVER-slitaz
pascal@2162 45 }
pascal@2162 46