wok-next annotate linux-video/receipt @ rev 15288

pkg-config: remove a wrong error trigger
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Sep 26 17:57:02 2013 +0000 (2013-09-26)
parents 416fab3c90c0
children 051931e905b0
rev   line source
pascal@886 1 # SliTaz package receipt.
pascal@886 2
pascal@886 3 PACKAGE="linux-video"
pascal@14175 4 VERSION="3.2.40"
pankso@12285 5 BASEVER="${VERSION:0:3}"
pascal@886 6 CATEGORY="base-system"
pascal@886 7 SHORT_DESC="The Linux kernel video modules."
pankso@3864 8 MAINTAINER="devel@slitaz.org"
pascal@14657 9 LICENSE="GPL2"
pascal@2926 10 DEPENDS="linux"
pascal@886 11 WANTED="linux"
pascal@886 12 WEB_SITE="http://www.kernel.org/"
pascal@886 13
pankso@5653 14 # Modules paths and list
pankso@12285 15 MOD_PATH="lib/modules/$BASEVER-slitaz/kernel"
pankso@12285 16 MODULES="drivers/video/backlight"
pankso@5653 17
pascal@886 18 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@886 19 genpkg_rules()
pascal@886 20 {
pankso@12285 21 mkdir -p ${fs}/${MOD_PATH}
pankso@5653 22 for module in $MODULES
pankso@5653 23 do
pankso@5653 24 dir=$MOD_PATH/$(dirname $module)
pankso@5653 25 [ -d $fs/$dir ] || mkdir -p $fs/$dir
pankso@5653 26 cp -a $_pkg/$MOD_PATH/$module $fs/$dir
pankso@5653 27 done
pascal@886 28 }
pascal@886 29
pascal@886 30 # Post install/remove commands for Tazpkg.
pascal@886 31 post_install()
pascal@886 32 {
pankso@12285 33 chroot "$1/" depmod -a $BASEVER-slitaz
pascal@886 34 }
pascal@886 35
pascal@886 36 post_remove()
pascal@886 37 {
pankso@12285 38 chroot "$1/" depmod -a $BASEVER-slitaz
pascal@886 39 }
pascal@886 40