wok-6.x annotate linux-input-touchscreen/receipt @ rev 12510
Up: xorg-libXmu, xorg-libXpm + clean receipt
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Apr 24 23:26:41 2012 +0200 (2012-04-24) |
parents | 6f536abe4f0b |
children | 416fab3c90c0 |
rev | line source |
---|---|
jozee@3510 | 1 # SliTaz package receipt. |
jozee@3510 | 2 |
jozee@3510 | 3 PACKAGE="linux-input-touchscreen" |
pankso@12285 | 4 VERSION="3.2.14" |
pankso@12285 | 5 BASEVER="${VERSION:0:3}" |
jozee@3510 | 6 CATEGORY="base-system" |
jozee@3510 | 7 SHORT_DESC="The Linux kernel touchscreen input drivers." |
jozee@3510 | 8 MAINTAINER="jozee@slitaz.org" |
jozee@3510 | 9 WANTED="linux" |
pascal@12304 | 10 DEPENDS="linux" |
jozee@3510 | 11 WEB_SITE="http://www.kernel.org/" |
jozee@3510 | 12 |
jozee@3510 | 13 # Rules to gen a SliTaz package suitable for Tazpkg. |
jozee@3510 | 14 genpkg_rules() |
jozee@3510 | 15 { |
jozee@3510 | 16 local path |
pankso@12285 | 17 path=lib/modules/$BASEVER-slitaz/kernel |
jozee@3510 | 18 mkdir -p $fs/$path |
jozee@3510 | 19 export src |
jozee@3510 | 20 export _pkg |
slaxemulator@10855 | 21 $wanted_stuff/list_modules.sh drivers/input/touchscreen | \ |
slaxemulator@10855 | 22 while read module; do |
jozee@3510 | 23 dir=$path/$(dirname $module) |
jozee@3510 | 24 [ -d $fs/$dir ] || mkdir -p $fs/$dir |
jozee@3510 | 25 cp -a $_pkg/$path/$module $fs/$dir |
jozee@3510 | 26 done |
jozee@3510 | 27 |
pankso@12285 | 28 for i in $(cat $wanted_stuff/modules.list); do |
pankso@12285 | 29 if [ -f $fs/$path/$i ]; then |
pankso@12285 | 30 rm -f $fs/$path/$i |
slaxemulator@7239 | 31 fi |
slaxemulator@7239 | 32 done |
jozee@3510 | 33 } |
jozee@3510 | 34 |
jozee@3510 | 35 # Post install/remove commands for Tazpkg. |
jozee@3510 | 36 post_install() |
jozee@3510 | 37 { |
pankso@12285 | 38 chroot "$1/" depmod -a $BASEVER-slitaz |
jozee@3510 | 39 } |
jozee@3510 | 40 |
jozee@3510 | 41 post_remove() |
jozee@3510 | 42 { |
pankso@12285 | 43 chroot "$1/" depmod -a $BASEVER-slitaz |
jozee@3510 | 44 } |
jozee@3510 | 45 |