wok-6.x annotate linux64-mmc/receipt @ rev 23913

Add linux-mmc
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Aug 16 17:17:01 2020 +0000 (2020-08-16)
parents
children
rev   line source
pascal@23913 1 # SliTaz package receipt.
pascal@23913 2
pascal@23913 3 PACKAGE="linux64-mmc"
pascal@23913 4 VERSION="3.16.55"
pascal@23913 5 CATEGORY="base-system"
pascal@23913 6 SHORT_DESC="The Linux kernel MMC modules."
pascal@23913 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@23913 8 LICENSE="GPL2"
pascal@23913 9 DEPENDS="linux64"
pascal@23913 10 WANTED="linux"
pascal@23913 11 PROVIDE="linux-mmc:linux64"
pascal@23913 12 WEB_SITE="https://www.kernel.org/"
pascal@23913 13
pascal@23913 14 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@23913 15 genpkg_rules()
pascal@23913 16 {
pascal@23913 17 local path
pascal@23913 18 src=$WOK/linux64/source/tmp
pascal@23913 19 install=$install/linux64
pascal@23913 20 path=lib/modules/$VERSION-slitaz64/kernel
pascal@23913 21 mkdir -p $fs/$path
pascal@23913 22 export src
pascal@23913 23 export install
pascal@23913 24 $wanted_stuff/list_modules.sh drivers/mmc | while read module; do
pascal@23913 25 dir=$path/$(dirname $module)
pascal@23913 26 [ -d $fs/$dir ] || mkdir -p $fs/$dir
pascal@23913 27 cp -a $install/$path/$module $fs/$dir
pascal@23913 28 done
pascal@23913 29
pascal@23913 30 for i in $(cat $wanted_stuff/modules.list); do
pascal@23913 31 if [ -f $fs/$path/$i ]; then
pascal@23913 32 rm -f $fs/$path/$i
pascal@23913 33 fi
pascal@23913 34 done
pascal@23913 35 }
pascal@23913 36
pascal@23913 37 # Post install/remove commands for Tazpkg.
pascal@23913 38 post_install()
pascal@23913 39 {
pascal@23913 40 chroot "$root/" depmod -a $VERSION-slitaz64
pascal@23913 41 }
pascal@23913 42
pascal@23913 43 post_remove()
pascal@23913 44 {
pascal@23913 45 chroot "$root/" depmod -a $VERSION-slitaz64
pascal@23913 46 }
pascal@23913 47