wok-next annotate linux-firewire/receipt @ rev 12298

Modify extension in TARBALL and SOURCE name
author Stanislas Leduc <shann@slitaz.org>
date Mon Apr 16 12:23:25 2012 +0200 (2012-04-16)
parents d1768332cee0
children 416fab3c90c0
rev   line source
slaxemulator@8087 1 # SliTaz package receipt.
slaxemulator@8087 2
slaxemulator@8087 3 PACKAGE="linux-firewire"
pankso@12285 4 VERSION="3.2.14"
pankso@12285 5 BASEVER="${VERSION:0:3}"
slaxemulator@8087 6 CATEGORY="base-system"
slaxemulator@8087 7 SHORT_DESC="The Linux kernel firewire modules."
slaxemulator@8087 8 MAINTAINER="devel@slitaz.org"
slaxemulator@8087 9 DEPENDS="linux"
slaxemulator@8087 10 WANTED="linux"
slaxemulator@8087 11 WEB_SITE="http://www.kernel.org/"
slaxemulator@8087 12
slaxemulator@8087 13 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@8087 14 genpkg_rules()
slaxemulator@8087 15 {
slaxemulator@8087 16 local path
pankso@12285 17 path=lib/modules/$BASEVER-slitaz/kernel
slaxemulator@8087 18 mkdir -p $fs/$path
slaxemulator@8087 19 export src
slaxemulator@8087 20 export _pkg
slaxemulator@9700 21 $wanted_stuff/list_modules.sh drivers/firewire | while read module; do
slaxemulator@8087 22 dir=$path/$(dirname $module)
slaxemulator@8087 23 [ -d $fs/$dir ] || mkdir -p $fs/$dir
slaxemulator@8087 24 cp -a $_pkg/$path/$module $fs/$dir
slaxemulator@8087 25 done
slaxemulator@8087 26 }
slaxemulator@8087 27
slaxemulator@8087 28 # Post install/remove commands for Tazpkg.
slaxemulator@8087 29 post_install()
slaxemulator@8087 30 {
pankso@12285 31 chroot "$1/" depmod -a $BASEVER-slitaz
slaxemulator@8087 32 }
slaxemulator@8087 33
slaxemulator@8087 34 post_remove()
slaxemulator@8087 35 {
pankso@12285 36 chroot "$1/" depmod -a $BASEVER-slitaz
slaxemulator@8087 37 }
slaxemulator@8087 38