wok-tiny view module-usbkbd/receipt @ rev 99

Add fuse, libpthread, librt, posixovl and some modules
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Oct 31 12:53:44 2015 +0100 (2015-10-31)
parents
children 0d8ef9102fc0
line source
1 # SliTaz package receipt.
3 PACKAGE="module-usbkbd"
4 VERSION="2.6.14"
5 CATEGORY="base-system"
6 SHORT_DESC="Kernel module for the USB keyboard"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://tiny.slitaz.org/"
10 WANTED="linux"
12 # Rules to gen a SliTaz package suitable for Tazpkg.
13 genpkg_rules()
14 {
15 local path
16 export src=$WOK/$WANTED/source/linux-$VERSION
17 export _pkg=$WOK/$WANTED/install
18 path=lib/modules/$(ls $_pkg/lib/modules)/kernel
19 mkdir -p $fs/$path
20 $src/slitaz/list_modules.sh drivers/usb/input/usbkbd.ko | while read module; do
21 dir=$path/$(dirname $module)
22 [ -d $fs/$dir ] || mkdir -p $fs/$dir
23 cp -a $_pkg/$path/$module $fs/$dir
24 done
25 }
27 # Post install/remove commands for Tazpkg.
28 post_install()
29 {
30 echo ${PACKAGE#*-} >> $1/modules
31 }