wok annotate linux-speakup/receipt @ rev 10220
Up: xorg-libSM to 1.2.0.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Fri May 20 23:58:57 2011 +0000 (2011-05-20) |
parents | 1d89aa1672da |
children | 6f536abe4f0b |
rev | line source |
---|---|
slaxemulator@8681 | 1 # SliTaz package receipt. |
slaxemulator@8681 | 2 |
slaxemulator@8681 | 3 PACKAGE="linux-speakup" |
slaxemulator@8681 | 4 VERSION="2.6.37" |
slaxemulator@8681 | 5 CATEGORY="base-system" |
slaxemulator@8681 | 6 SHORT_DESC="The Linux kernel Speakup modules." |
slaxemulator@8681 | 7 MAINTAINER="erjo@slitaz.org" |
slaxemulator@8681 | 8 DEPENDS="linux" |
slaxemulator@8681 | 9 WANTED="linux" |
slaxemulator@8681 | 10 WEB_SITE="http://www.kernel.org/" |
slaxemulator@8681 | 11 |
slaxemulator@8681 | 12 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@8681 | 13 genpkg_rules() |
slaxemulator@8681 | 14 { |
slaxemulator@8681 | 15 local path |
slaxemulator@8681 | 16 path=lib/modules/$VERSION-slitaz/kernel |
slaxemulator@8681 | 17 mkdir -p $fs/$path |
slaxemulator@8681 | 18 export src |
slaxemulator@8681 | 19 export _pkg |
slaxemulator@9700 | 20 $wanted_stuff/list_modules.sh drivers/staging/speakup | while read module; do |
slaxemulator@8681 | 21 dir=$path/$(dirname $module) |
slaxemulator@8681 | 22 [ -d $fs/$dir ] || mkdir -p $fs/$dir |
slaxemulator@8681 | 23 cp -a $_pkg/$path/$module $fs/$dir |
slaxemulator@8681 | 24 done |
slaxemulator@8681 | 25 |
slaxemulator@9700 | 26 for i in $(cat $wanted_stuff/modules-$VERSION.list); do |
slaxemulator@8681 | 27 if [ $fs/lib/modules/$VERSION-slitaz/kernel/$i ]; then |
slaxemulator@8681 | 28 rm -f $fs/lib/modules/$VERSION-slitaz/kernel/$i |
slaxemulator@8681 | 29 fi |
slaxemulator@8681 | 30 done |
slaxemulator@8681 | 31 } |
slaxemulator@8681 | 32 |
slaxemulator@8681 | 33 # Post install/remove commands for Tazpkg. |
slaxemulator@8681 | 34 post_install() |
slaxemulator@8681 | 35 { |
slaxemulator@8681 | 36 chroot "$1/" depmod -a $VERSION-slitaz |
slaxemulator@8681 | 37 } |
slaxemulator@8681 | 38 |
slaxemulator@8681 | 39 post_remove() |
slaxemulator@8681 | 40 { |
slaxemulator@8681 | 41 chroot "$1/" depmod -a $VERSION-slitaz |
slaxemulator@8681 | 42 } |
slaxemulator@8681 | 43 |