wok-next annotate linux-toshiba/receipt @ rev 5955

Add: lxrandr 0.1.1
author Antoine Bodin <gokhlayeh@mailoo.org>
date Tue Aug 03 22:25:27 2010 +0200 (2010-08-03)
parents
children 5b6e682d7c62
rev   line source
pankso@5654 1 # SliTaz package receipt.
pankso@5654 2
pankso@5654 3 PACKAGE="linux-toshiba"
pankso@5654 4 VERSION="2.6.34"
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
pankso@5654 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 }