wok-next annotate linux-hwmon/receipt @ rev 17228
Add flake8
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Oct 16 13:30:13 2014 +0200 (2014-10-16) |
parents | eb689de65d7e |
children | 08cf996a2307 |
rev | line source |
---|---|
slaxemulator@8616 | 1 # SliTaz package receipt. |
slaxemulator@8616 | 2 |
slaxemulator@8616 | 3 PACKAGE="linux-hwmon" |
pascal@15670 | 4 VERSION="3.2.53" |
slaxemulator@8616 | 5 CATEGORY="base-system" |
slaxemulator@8616 | 6 SHORT_DESC="The Linux kernel hwmon modules." |
slaxemulator@8616 | 7 MAINTAINER="devel@slitaz.org" |
pascal@14657 | 8 LICENSE="GPL2" |
slaxemulator@8616 | 9 DEPENDS="linux" |
slaxemulator@8616 | 10 WANTED="linux" |
slaxemulator@8616 | 11 WEB_SITE="http://www.kernel.org/" |
slaxemulator@8616 | 12 |
slaxemulator@8616 | 13 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@8616 | 14 genpkg_rules() |
slaxemulator@8616 | 15 { |
slaxemulator@8616 | 16 local path |
pankso@15855 | 17 path=lib/modules/$VERSION-slitaz/kernel |
slaxemulator@8616 | 18 mkdir -p $fs/$path |
pankso@15855 | 19 export src install |
slaxemulator@9700 | 20 $wanted_stuff/list_modules.sh drivers/hwmon | while read module; do |
slaxemulator@8616 | 21 dir=$path/$(dirname $module) |
slaxemulator@8616 | 22 [ -d $fs/$dir ] || mkdir -p $fs/$dir |
pascal@15603 | 23 cp -a $install/$path/$module $fs/$dir |
slaxemulator@8616 | 24 done |
slaxemulator@8616 | 25 |
pankso@12285 | 26 for i in $(cat $wanted_stuff/modules.list); do |
pankso@12285 | 27 if [ -f $fs/$path/$i ]; then |
pankso@12285 | 28 rm -f $fs/$path/$i |
slaxemulator@8616 | 29 fi |
slaxemulator@8616 | 30 done |
slaxemulator@8616 | 31 } |
slaxemulator@8616 | 32 |
slaxemulator@8616 | 33 # Post install/remove commands for Tazpkg. |
slaxemulator@8616 | 34 post_install() |
slaxemulator@8616 | 35 { |
pankso@15855 | 36 chroot "$root/" depmod -a $VERSION-slitaz |
slaxemulator@8616 | 37 } |
slaxemulator@8616 | 38 |
slaxemulator@8616 | 39 post_remove() |
slaxemulator@8616 | 40 { |
pankso@15855 | 41 chroot "$root/" depmod -a $VERSION-slitaz |
slaxemulator@8616 | 42 } |
slaxemulator@8616 | 43 |