wok annotate linux-libre-chrome/receipt @ rev 25178
Add linux-chrome
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jul 03 18:25:40 2022 +0000 (2022-07-03) |
parents | |
children |
rev | line source |
---|---|
pascal@25178 | 1 # SliTaz package receipt. |
pascal@25178 | 2 |
pascal@25178 | 3 PACKAGE="linux-libre-chrome" |
pascal@25178 | 4 VERSION="3.18.129-gnu" |
pascal@25178 | 5 CATEGORY="base-system" |
pascal@25178 | 6 SHORT_DESC="The Linux kernel chromebook modules." |
pascal@25178 | 7 MAINTAINER="gokhlayeh@slitaz.org" |
pascal@25178 | 8 LICENSE="GPL2" |
pascal@25178 | 9 PROVIDE="linux-chrome" |
pascal@25178 | 10 WANTED="linux-libre" |
pascal@25178 | 11 WEB_SITE="http://www.fsfla.org/svnwiki/selibre/linux-libre/" |
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 |
pascal@25178 | 21 export _pkg |
pascal@25178 | 22 |
pascal@25178 | 23 $wanted_stuff/list_modules.sh drivers/platform/chrome | while read module; do |
pascal@25178 | 24 dir=$path/$(dirname $module) |
pascal@25178 | 25 [ -d $fs/$dir ] || mkdir -p $fs/$dir |
pascal@25178 | 26 cp -a $install/$path/$module $fs/$dir |
pascal@25178 | 27 done |
pascal@25178 | 28 |
pascal@25178 | 29 for i in $(cat $wanted_stuff/modules-$VERSION.list); do |
pascal@25178 | 30 if [ $fs/lib/modules/$VERSION-slitaz/kernel/$i ]; then |
pascal@25178 | 31 rm -f $fs/lib/modules/$VERSION-slitaz/kernel/$i |
pascal@25178 | 32 fi |
pascal@25178 | 33 done |
pascal@25178 | 34 } |
pascal@25178 | 35 |
pascal@25178 | 36 # Post install/remove commands for Tazpkg. |
pascal@25178 | 37 post_install() |
pascal@25178 | 38 { |
pascal@25178 | 39 chroot "$1/" depmod -a $VERSION-slitaz |
pascal@25178 | 40 } |
pascal@25178 | 41 |
pascal@25178 | 42 post_remove() |
pascal@25178 | 43 { |
pascal@25178 | 44 chroot "$1/" depmod -a $VERSION-slitaz |
pascal@25178 | 45 } |
pascal@25178 | 46 |