wok annotate linux-speakup/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 |
---|---|
slaxemulator@8681 | 1 # SliTaz package receipt. |
slaxemulator@8681 | 2 |
slaxemulator@8681 | 3 PACKAGE="linux-speakup" |
pascal@14175 | 4 VERSION="3.2.40" |
pankso@12285 | 5 BASEVER="${VERSION:0:3}" |
slaxemulator@8681 | 6 CATEGORY="base-system" |
slaxemulator@8681 | 7 SHORT_DESC="The Linux kernel Speakup modules." |
slaxemulator@8681 | 8 MAINTAINER="erjo@slitaz.org" |
slaxemulator@8681 | 9 DEPENDS="linux" |
slaxemulator@8681 | 10 WANTED="linux" |
slaxemulator@8681 | 11 WEB_SITE="http://www.kernel.org/" |
slaxemulator@8681 | 12 |
slaxemulator@8681 | 13 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@8681 | 14 genpkg_rules() |
slaxemulator@8681 | 15 { |
slaxemulator@8681 | 16 local path |
pankso@12285 | 17 path=lib/modules/$BASEVER-slitaz/kernel |
slaxemulator@8681 | 18 mkdir -p $fs/$path |
slaxemulator@8681 | 19 export src |
slaxemulator@8681 | 20 export _pkg |
slaxemulator@9700 | 21 $wanted_stuff/list_modules.sh drivers/staging/speakup | while read module; do |
slaxemulator@8681 | 22 dir=$path/$(dirname $module) |
slaxemulator@8681 | 23 [ -d $fs/$dir ] || mkdir -p $fs/$dir |
slaxemulator@8681 | 24 cp -a $_pkg/$path/$module $fs/$dir |
slaxemulator@8681 | 25 done |
slaxemulator@8681 | 26 |
pankso@12285 | 27 for i in $(cat $wanted_stuff/modules.list); do |
pankso@12285 | 28 if [ -f $fs/$path/$i ]; then |
pankso@12285 | 29 rm -f $fs/$path/$i |
slaxemulator@8681 | 30 fi |
slaxemulator@8681 | 31 done |
slaxemulator@8681 | 32 } |
slaxemulator@8681 | 33 |
slaxemulator@8681 | 34 # Post install/remove commands for Tazpkg. |
slaxemulator@8681 | 35 post_install() |
slaxemulator@8681 | 36 { |
pankso@12285 | 37 chroot "$1/" depmod -a $BASEVER-slitaz |
slaxemulator@8681 | 38 } |
slaxemulator@8681 | 39 |
slaxemulator@8681 | 40 post_remove() |
slaxemulator@8681 | 41 { |
pankso@12285 | 42 chroot "$1/" depmod -a $BASEVER-slitaz |
slaxemulator@8681 | 43 } |
slaxemulator@8681 | 44 |