wok-current annotate linux-mmc/receipt @ rev 12624

exosip: update WGET_URL
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Apr 29 12:18:27 2012 +0200 (2012-04-29)
parents d1768332cee0
children 829b8ae84e70
rev   line source
pascal@2162 1 # SliTaz package receipt.
pascal@2162 2
pascal@2162 3 PACKAGE="linux-mmc"
pankso@12285 4 VERSION="3.2.14"
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@2926 9 DEPENDS="linux"
pascal@2162 10 WANTED="linux"
pascal@2162 11 WEB_SITE="http://www.kernel.org/"
pascal@2162 12
pascal@2162 13 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@2162 14 genpkg_rules()
pascal@2162 15 {
pascal@2162 16 local path
pankso@12285 17 path=lib/modules/$BASEVER-slitaz/kernel
pascal@2162 18 mkdir -p $fs/$path
pascal@2162 19 export src
pascal@2162 20 export _pkg
slaxemulator@9700 21 $wanted_stuff/list_modules.sh drivers/mmc drivers/misc/tifm_7xx1.ko.gz drivers/misc/iwmc3200top/iwmc3200top.ko.gz| \
pascal@2990 22 while read module; do
pascal@2162 23 dir=$path/$(dirname $module)
pascal@2162 24 [ -d $fs/$dir ] || mkdir -p $fs/$dir
pascal@2162 25 cp -a $_pkg/$path/$module $fs/$dir
pascal@2162 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@2162 33 }
pascal@2162 34
pascal@2162 35 # Post install/remove commands for Tazpkg.
pascal@2162 36 post_install()
pascal@2162 37 {
pankso@12285 38 chroot "$1/" depmod -a $BASEVER-slitaz
pascal@2162 39 }
pascal@2162 40
pascal@2162 41 post_remove()
pascal@2162 42 {
pankso@12285 43 chroot "$1/" depmod -a $BASEVER-slitaz
pascal@2162 44 }
pascal@2162 45