wok annotate linux-sound/receipt @ rev 14503

Add get-litecoin
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 11 23:41:18 2013 +0200 (2013-05-11)
parents 6f536abe4f0b
children ad59999b3fce
rev   line source
pascal@521 1 # SliTaz package receipt.
pascal@521 2
pascal@521 3 PACKAGE="linux-sound"
pascal@14175 4 VERSION="3.2.40"
pankso@12285 5 BASEVER="${VERSION:0:3}"
pascal@521 6 CATEGORY="base-system"
pascal@521 7 SHORT_DESC="The Linux kernel sound modules."
pankso@3864 8 MAINTAINER="devel@slitaz.org"
pascal@2926 9 DEPENDS="linux"
pascal@521 10 WANTED="linux"
pascal@521 11 WEB_SITE="http://www.kernel.org/"
pascal@521 12
pascal@521 13 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@521 14 genpkg_rules()
pascal@521 15 {
pascal@521 16 local path
pankso@12285 17 path=lib/modules/$BASEVER-slitaz/kernel
pascal@521 18 mkdir -p $fs/$path
pascal@886 19 export src
pascal@886 20 export _pkg
slaxemulator@9700 21 $wanted_stuff/list_modules.sh sound | while read module; do
pascal@886 22 dir=$path/$(dirname $module)
pascal@886 23 [ -d $fs/$dir ] || mkdir -p $fs/$dir
pascal@886 24 cp -a $_pkg/$path/$module $fs/$dir
pascal@886 25 done
pascal@2990 26 mkdir $fs/lib/firmware
pascal@2990 27 for i in ess korg sun yamaha; do
pascal@2990 28 cp -a $_pkg/lib/firmware/$i $fs/lib/firmware
pascal@2990 29 done
pascal@521 30
pankso@12285 31 for i in $(cat $wanted_stuff/modules.list); do
pankso@12285 32 if [ -f $fs/$path/$i ]; then
pankso@12285 33 rm -f $fs/$path/$i
slaxemulator@7240 34 fi
slaxemulator@7240 35 done
slaxemulator@7240 36
pascal@521 37 }
pascal@521 38
pascal@521 39 # Post install/remove commands for Tazpkg.
pascal@521 40 post_install()
pascal@521 41 {
pankso@12285 42 chroot "$1/" depmod -a $BASEVER-slitaz
pascal@521 43 }
pascal@521 44
pascal@521 45 post_remove()
pascal@521 46 {
pankso@12285 47 chroot "$1/" depmod -a $BASEVER-slitaz
pascal@521 48 }
pascal@521 49