wok-undigest annotate linux-mmc/receipt @ rev 1103
latex: fix configure path
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jan 17 15:54:23 2014 +0000 (2014-01-17) |
parents | |
children |
rev | line source |
---|---|
erjo@1087 | 1 # SliTaz package receipt. |
erjo@1087 | 2 |
erjo@1087 | 3 PACKAGE="linux-mmc" |
erjo@1087 | 4 VERSION="3.2.53" |
erjo@1087 | 5 BASEVER="${VERSION:0:3}" |
erjo@1087 | 6 CATEGORY="base-system" |
erjo@1087 | 7 SHORT_DESC="The Linux kernel mmc modules (card reader)." |
erjo@1087 | 8 MAINTAINER="devel@slitaz.org" |
erjo@1087 | 9 LICENSE="GPL2" |
erjo@1087 | 10 DEPENDS="linux" |
erjo@1087 | 11 WANTED="linux" |
erjo@1087 | 12 WEB_SITE="http://www.kernel.org/" |
erjo@1087 | 13 |
erjo@1087 | 14 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@1087 | 15 genpkg_rules() |
erjo@1087 | 16 { |
erjo@1087 | 17 local path |
erjo@1087 | 18 path=lib/modules/$BASEVER-slitaz/kernel |
erjo@1087 | 19 mkdir -p $fs/$path |
erjo@1087 | 20 export src |
erjo@1087 | 21 export _pkg |
erjo@1087 | 22 $wanted_stuff/list_modules.sh drivers/mmc drivers/misc/tifm_7xx1.ko.xz drivers/misc/iwmc3200top/iwmc3200top.ko.xz| \ |
erjo@1087 | 23 while read module; do |
erjo@1087 | 24 dir=$path/$(dirname $module) |
erjo@1087 | 25 [ -d $fs/$dir ] || mkdir -p $fs/$dir |
erjo@1087 | 26 cp -a $install/$path/$module $fs/$dir |
erjo@1087 | 27 done |
erjo@1087 | 28 |
erjo@1087 | 29 for i in $(cat $wanted_stuff/modules.list); do |
erjo@1087 | 30 if [ -f $fs/$path/$i ]; then |
erjo@1087 | 31 rm -f $fs/$path/$i |
erjo@1087 | 32 fi |
erjo@1087 | 33 done |
erjo@1087 | 34 } |
erjo@1087 | 35 |
erjo@1087 | 36 # Post install/remove commands for Tazpkg. |
erjo@1087 | 37 post_install() |
erjo@1087 | 38 { |
erjo@1087 | 39 chroot "$1/" depmod -a $BASEVER-slitaz |
erjo@1087 | 40 } |
erjo@1087 | 41 |
erjo@1087 | 42 post_remove() |
erjo@1087 | 43 { |
erjo@1087 | 44 chroot "$1/" depmod -a $BASEVER-slitaz |
erjo@1087 | 45 } |
erjo@1087 | 46 |