wok-6.x annotate linux64-sound/receipt @ rev 17161
syslinux/iso2exe: full zImage support (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Sep 17 15:21:35 2014 +0200 (2014-09-17) |
parents | 765487dd22da |
children | 4ad2325946cd |
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 CATEGORY="base-system" |
pankso@12285 | 6 SHORT_DESC="The Linux kernel sound modules." |
pankso@12285 | 7 MAINTAINER="devel@slitaz.org" |
pascal@14657 | 8 LICENSE="GPL2" |
pankso@12285 | 9 DEPENDS="linux64" |
pankso@12285 | 10 WANTED="linux" |
pascal@17031 | 11 PROVIDE="linux-sound:linux64" |
pankso@12285 | 12 WEB_SITE="http://www.kernel.org/" |
pankso@12285 | 13 |
pankso@12285 | 14 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@12285 | 15 genpkg_rules() |
pankso@12285 | 16 { |
pankso@12285 | 17 local path |
pascal@16657 | 18 install=$install/linux64 |
pascal@17028 | 19 path=lib/modules/$VERSION-slitaz64/kernel |
pankso@12285 | 20 mkdir -p $fs/$path |
pankso@12285 | 21 export src |
pascal@16657 | 22 export install |
pankso@12285 | 23 $wanted_stuff/list_modules.sh sound | while read module; do |
pankso@12285 | 24 dir=$path/$(dirname $module) |
pankso@12285 | 25 [ -d $fs/$dir ] || mkdir -p $fs/$dir |
pascal@16657 | 26 cp -a $install/$path/$module $fs/$dir |
pankso@12285 | 27 done |
pankso@12285 | 28 mkdir $fs/lib/firmware |
pankso@12285 | 29 for i in ess korg sun yamaha; do |
pascal@16657 | 30 cp -a $install/lib/firmware/$i $fs/lib/firmware |
pankso@12285 | 31 done |
pankso@12285 | 32 |
pankso@12285 | 33 for i in $(cat $wanted_stuff/modules.list); do |
pankso@12285 | 34 if [ -f $fs/$path/$i ]; then |
pankso@12285 | 35 rm -f $fs/$path/$i |
pankso@12285 | 36 fi |
pankso@12285 | 37 done |
pankso@12285 | 38 |
pankso@12285 | 39 } |
pankso@12285 | 40 |
pankso@12285 | 41 # Post install/remove commands for Tazpkg. |
pankso@12285 | 42 post_install() |
pankso@12285 | 43 { |
pascal@17032 | 44 chroot "$root/" depmod -a $VERSION-slitaz64 |
pankso@12285 | 45 } |
pankso@12285 | 46 |
pankso@12285 | 47 post_remove() |
pankso@12285 | 48 { |
pascal@17032 | 49 chroot "$root/" depmod -a $VERSION-slitaz64 |
pankso@12285 | 50 } |
pankso@12285 | 51 |