wok annotate linux-speakup/receipt @ rev 14683

elementary-dev: Up to 1.7.7
author Dominique Corbex <domcox@slitaz.org>
date Thu Jun 06 22:09:10 2013 +0200 (2013-06-06)
parents 416fab3c90c0
children 051931e905b0
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"
pascal@14657 9 LICENSE="GPL2"
slaxemulator@8681 10 DEPENDS="linux"
slaxemulator@8681 11 WANTED="linux"
slaxemulator@8681 12 WEB_SITE="http://www.kernel.org/"
slaxemulator@8681 13
slaxemulator@8681 14 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@8681 15 genpkg_rules()
slaxemulator@8681 16 {
slaxemulator@8681 17 local path
pankso@12285 18 path=lib/modules/$BASEVER-slitaz/kernel
slaxemulator@8681 19 mkdir -p $fs/$path
slaxemulator@8681 20 export src
slaxemulator@8681 21 export _pkg
slaxemulator@9700 22 $wanted_stuff/list_modules.sh drivers/staging/speakup | while read module; do
slaxemulator@8681 23 dir=$path/$(dirname $module)
slaxemulator@8681 24 [ -d $fs/$dir ] || mkdir -p $fs/$dir
slaxemulator@8681 25 cp -a $_pkg/$path/$module $fs/$dir
slaxemulator@8681 26 done
slaxemulator@8681 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@8681 31 fi
slaxemulator@8681 32 done
slaxemulator@8681 33 }
slaxemulator@8681 34
slaxemulator@8681 35 # Post install/remove commands for Tazpkg.
slaxemulator@8681 36 post_install()
slaxemulator@8681 37 {
pankso@12285 38 chroot "$1/" depmod -a $BASEVER-slitaz
slaxemulator@8681 39 }
slaxemulator@8681 40
slaxemulator@8681 41 post_remove()
slaxemulator@8681 42 {
pankso@12285 43 chroot "$1/" depmod -a $BASEVER-slitaz
slaxemulator@8681 44 }
slaxemulator@8681 45