wok annotate linux-chrome/receipt @ rev 25794
created recipe for exo-lang
author | Hans-G?nter Theisgen |
---|---|
date | Wed Oct 23 16:19:52 2024 +0100 (4 weeks ago) |
parents | |
children |
rev | line source |
---|---|
pascal@25178 | 1 # SliTaz package receipt. |
pascal@25178 | 2 |
pascal@25178 | 3 PACKAGE="linux-chrome" |
pascal@25178 | 4 VERSION="3.16.55" |
pascal@25178 | 5 CATEGORY="base-system" |
pascal@25178 | 6 SHORT_DESC="The Linux kernel chromebook modules." |
pascal@25178 | 7 MAINTAINER="devel@slitaz.org" |
pascal@25178 | 8 LICENSE="GPL2" |
pascal@25178 | 9 WANTED="linux" |
pascal@25178 | 10 DEPENDS="linux" |
pascal@25178 | 11 WEB_SITE="https://www.kernel.org/" |
pascal@25178 | 12 |
pascal@25178 | 13 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@25178 | 14 genpkg_rules() |
pascal@25178 | 15 { |
pascal@25178 | 16 local path |
pascal@25178 | 17 path=lib/modules/$VERSION-slitaz/kernel |
pascal@25178 | 18 mkdir -p $fs/$path |
pascal@25178 | 19 |
pascal@25178 | 20 export src install |
pascal@25178 | 21 |
pascal@25178 | 22 $wanted_stuff/list_modules.sh drivers/platform/chrome | while read module; do |
pascal@25178 | 23 dir=$path/$(dirname $module) |
pascal@25178 | 24 [ -d $fs/$dir ] || mkdir -p $fs/$dir |
pascal@25178 | 25 cp -a $install/$path/$module $fs/$dir |
pascal@25178 | 26 done |
pascal@25178 | 27 |
pascal@25178 | 28 for i in $(cat $wanted_stuff/modules.list); do |
pascal@25178 | 29 if [ -f $fs/$path/$i ]; then |
pascal@25178 | 30 rm -f $fs/$path/$i |
pascal@25178 | 31 fi |
pascal@25178 | 32 done |
pascal@25178 | 33 } |
pascal@25178 | 34 |
pascal@25178 | 35 # Post install/remove commands for Tazpkg. |
pascal@25178 | 36 post_install() |
pascal@25178 | 37 { |
pascal@25178 | 38 chroot "$root/" depmod -a $VERSION-slitaz |
pascal@25178 | 39 } |
pascal@25178 | 40 |
pascal@25178 | 41 post_remove() |
pascal@25178 | 42 { |
pascal@25178 | 43 chroot "$root/" depmod -a $VERSION-slitaz |
pascal@25178 | 44 } |
pascal@25178 | 45 |