wok annotate linux64-sound/receipt @ rev 15690

dpkg,debootstrap: Fix missing mkdir command
author Stanislas Leduc <shann@slitaz.org>
date Sat Dec 21 08:14:41 2013 +0100 (2013-12-21)
parents 8873e661671a
children 5ca86f3045d4
rev   line source
pankso@12285 1 # SliTaz package receipt.
pankso@12285 2
pankso@12285 3 PACKAGE="linux64-sound"
pascal@15670 4 VERSION="3.2.53"
pankso@12285 5 BASEVER="${VERSION:0:3}"
pankso@12285 6 CATEGORY="base-system"
pankso@12285 7 SHORT_DESC="The Linux kernel sound modules."
pankso@12285 8 MAINTAINER="devel@slitaz.org"
pascal@14657 9 LICENSE="GPL2"
pankso@12285 10 DEPENDS="linux64"
pankso@12285 11 WANTED="linux"
pankso@12285 12 PROVIDE="linux-sound"
pankso@12285 13 WEB_SITE="http://www.kernel.org/"
pankso@12285 14
pankso@12285 15 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@12285 16 genpkg_rules()
pankso@12285 17 {
pankso@12285 18 local path
pascal@15603 19 _pkg=$install/linux64
pankso@12285 20 path=lib/modules/$BASEVER-slitaz/kernel
pankso@12285 21 mkdir -p $fs/$path
pankso@12285 22 export src
pankso@12285 23 export _pkg
pankso@12285 24 $wanted_stuff/list_modules.sh sound | while read module; do
pankso@12285 25 dir=$path/$(dirname $module)
pankso@12285 26 [ -d $fs/$dir ] || mkdir -p $fs/$dir
pascal@15610 27 cp -a $_pkg/$path/$module $fs/$dir
pankso@12285 28 done
pankso@12285 29 mkdir $fs/lib/firmware
pankso@12285 30 for i in ess korg sun yamaha; do
pascal@15610 31 cp -a $_pkg/lib/firmware/$i $fs/lib/firmware
pankso@12285 32 done
pankso@12285 33
pankso@12285 34 for i in $(cat $wanted_stuff/modules.list); do
pankso@12285 35 if [ -f $fs/$path/$i ]; then
pankso@12285 36 rm -f $fs/$path/$i
pankso@12285 37 fi
pankso@12285 38 done
pankso@12285 39
pankso@12285 40 }
pankso@12285 41
pankso@12285 42 # Post install/remove commands for Tazpkg.
pankso@12285 43 post_install()
pankso@12285 44 {
pankso@12285 45 chroot "$1/" depmod -a $BASEVER-slitaz
pankso@12285 46 }
pankso@12285 47
pankso@12285 48 post_remove()
pankso@12285 49 {
pankso@12285 50 chroot "$1/" depmod -a $BASEVER-slitaz
pankso@12285 51 }
pankso@12285 52