wok annotate linux-speakup/receipt @ rev 18934

Up slitaz-configs (273)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 27 07:57:39 2016 +0100 (2016-02-27)
parents db5b03f42dd9
children ffc20f9bd49f
rev   line source
slaxemulator@8681 1 # SliTaz package receipt.
slaxemulator@8681 2
slaxemulator@8681 3 PACKAGE="linux-speakup"
pascal@18296 4 VERSION="3.2.71"
slaxemulator@8681 5 CATEGORY="base-system"
slaxemulator@8681 6 SHORT_DESC="The Linux kernel Speakup modules."
slaxemulator@8681 7 MAINTAINER="erjo@slitaz.org"
pascal@14657 8 LICENSE="GPL2"
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@15855 17 path=lib/modules/$VERSION-slitaz/kernel
slaxemulator@8681 18 mkdir -p $fs/$path
pankso@15855 19 export src install
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
pascal@15603 23 cp -a $install/$path/$module $fs/$dir
slaxemulator@8681 24 done
slaxemulator@8681 25
pankso@12285 26 for i in $(cat $wanted_stuff/modules.list); do
pankso@12285 27 if [ -f $fs/$path/$i ]; then
pankso@12285 28 rm -f $fs/$path/$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 {
pankso@15855 36 chroot "$root/" depmod -a $VERSION-slitaz
slaxemulator@8681 37 }
slaxemulator@8681 38
slaxemulator@8681 39 post_remove()
slaxemulator@8681 40 {
pankso@15855 41 chroot "$root/" depmod -a $VERSION-slitaz
slaxemulator@8681 42 }
slaxemulator@8681 43