wok-current annotate linux-toshiba/receipt @ rev 7718
Fix build-deps of some Xproto packages (again)
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Sun Dec 19 18:33:50 2010 +0100 (2010-12-19) |
parents | 5b6e682d7c62 |
children | 03d4663c81fa |
rev | line source |
---|---|
pankso@5654 | 1 # SliTaz package receipt. |
pankso@5654 | 2 |
pankso@5654 | 3 PACKAGE="linux-toshiba" |
slaxemulator@7131 | 4 VERSION="2.6.36" |
pankso@5654 | 5 CATEGORY="base-system" |
pankso@5654 | 6 SHORT_DESC="The Linux kernel toshiba module." |
pankso@5654 | 7 MAINTAINER="devel@slitaz.org" |
pankso@5654 | 8 DEPENDS="linux" |
pankso@5654 | 9 WANTED="linux" |
pankso@5654 | 10 WEB_SITE="http://www.kernel.org/" |
pankso@5654 | 11 |
pankso@5654 | 12 # Modules paths and list |
slaxemulator@6719 | 13 MOD_PATH="lib/modules/$VERSION-slitaz/kernel" |
pankso@5654 | 14 MODULES="drivers/char/toshiba.ko.gz" |
pankso@5654 | 15 |
pankso@5654 | 16 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@5654 | 17 genpkg_rules() |
pankso@5654 | 18 { |
pankso@5654 | 19 mkdir -p ${fs}${MOD_PATH} |
pankso@5654 | 20 for module in $MODULES |
pankso@5654 | 21 do |
pankso@5654 | 22 dir=$MOD_PATH/$(dirname $module) |
pankso@5654 | 23 [ -d $fs/$dir ] || mkdir -p $fs/$dir |
pankso@5654 | 24 cp -a $_pkg/$MOD_PATH/$module $fs/$dir |
pankso@5654 | 25 done |
pankso@5654 | 26 } |
pankso@5654 | 27 |
pankso@5654 | 28 # Post install/remove commands for Tazpkg. |
pankso@5654 | 29 post_install() |
pankso@5654 | 30 { |
pankso@5654 | 31 chroot "$1/" depmod -a $VERSION-slitaz |
pankso@5654 | 32 } |
pankso@5654 | 33 |
pankso@5654 | 34 post_remove() |
pankso@5654 | 35 { |
pankso@5654 | 36 depmod -a $VERSION-slitaz |
pankso@5654 | 37 } |