wok-next annotate linux-input-touchscreen/receipt @ rev 15670
Up linux (3.2.53)
| author | Pascal Bellard <pascal.bellard@slitaz.org> |
|---|---|
| date | Wed Dec 18 08:40:48 2013 +0000 (2013-12-18) |
| parents | 051931e905b0 |
| children | db5b03f42dd9 |
| rev | line source |
|---|---|
| jozee@3510 | 1 # SliTaz package receipt. |
| jozee@3510 | 2 |
| jozee@3510 | 3 PACKAGE="linux-input-touchscreen" |
| pascal@15670 | 4 VERSION="3.2.53" |
| 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" |
| pascal@14657 | 9 LICENSE="GPL2" |
| jozee@3510 | 10 WANTED="linux" |
| pascal@12304 | 11 DEPENDS="linux" |
| jozee@3510 | 12 WEB_SITE="http://www.kernel.org/" |
| jozee@3510 | 13 |
| jozee@3510 | 14 # Rules to gen a SliTaz package suitable for Tazpkg. |
| jozee@3510 | 15 genpkg_rules() |
| jozee@3510 | 16 { |
| jozee@3510 | 17 local path |
| pankso@12285 | 18 path=lib/modules/$BASEVER-slitaz/kernel |
| jozee@3510 | 19 mkdir -p $fs/$path |
| jozee@3510 | 20 export src |
| jozee@3510 | 21 export _pkg |
| slaxemulator@10855 | 22 $wanted_stuff/list_modules.sh drivers/input/touchscreen | \ |
| slaxemulator@10855 | 23 while read module; do |
| jozee@3510 | 24 dir=$path/$(dirname $module) |
| jozee@3510 | 25 [ -d $fs/$dir ] || mkdir -p $fs/$dir |
| pascal@15603 | 26 cp -a $install/$path/$module $fs/$dir |
| jozee@3510 | 27 done |
| jozee@3510 | 28 |
| pankso@12285 | 29 for i in $(cat $wanted_stuff/modules.list); do |
| pankso@12285 | 30 if [ -f $fs/$path/$i ]; then |
| pankso@12285 | 31 rm -f $fs/$path/$i |
| slaxemulator@7239 | 32 fi |
| slaxemulator@7239 | 33 done |
| jozee@3510 | 34 } |
| jozee@3510 | 35 |
| jozee@3510 | 36 # Post install/remove commands for Tazpkg. |
| jozee@3510 | 37 post_install() |
| jozee@3510 | 38 { |
| pankso@12285 | 39 chroot "$1/" depmod -a $BASEVER-slitaz |
| jozee@3510 | 40 } |
| jozee@3510 | 41 |
| jozee@3510 | 42 post_remove() |
| jozee@3510 | 43 { |
| pankso@12285 | 44 chroot "$1/" depmod -a $BASEVER-slitaz |
| jozee@3510 | 45 } |
| jozee@3510 | 46 |