rev |
line source |
pascal@743
|
1 # SliTaz package receipt.
|
pascal@743
|
2
|
pascal@743
|
3 PACKAGE="kbd-busybox"
|
pascal@14770
|
4 VERSION="1.15.3"
|
pascal@743
|
5 CATEGORY="base-system"
|
pascal@743
|
6 SHORT_DESC="Keyboard maping definitions for busybox."
|
pascal@743
|
7 MAINTAINER="pascal.bellard@slitaz.org"
|
pascal@14770
|
8 LICENSE="GPL2"
|
pascal@743
|
9 BUILD_DEPENDS="kbd-base busybox"
|
pascal@743
|
10 WEB_SITE="http://www.slitaz.org/"
|
pascal@743
|
11
|
pascal@1631
|
12 # Rules to configure and make the package.
|
pascal@1631
|
13 compile_rules()
|
pascal@743
|
14 {
|
pascal@14770
|
15 mkdir -p $install/usr/share/kmap
|
pascal@1631
|
16 cd $src
|
pascal@1631
|
17 dumpkmap > current.kmap || return 1
|
pascal@743
|
18 for i in $(cd /usr/share/kbd/keymaps/i386 ; ls */*.map.gz); do
|
pascal@743
|
19 [ "$(dirname $i)" = "include" ] && continue
|
pascal@4387
|
20 k=$(basename $i)
|
pascal@4387
|
21 k=${k%.map.gz}
|
pascal@4387
|
22 loadkeys /usr/share/kbd/keymaps/i386/$i &&
|
pascal@14770
|
23 dumpkmap > $install/usr/share/kmap/$k.kmap
|
pascal@10349
|
24 dumpkmap | cmp current.kmap - > /dev/null && map=$i
|
pascal@743
|
25 done
|
pascal@10349
|
26 loadkmap < current.kmap || loadkeys /usr/share/kbd/keymaps/i386/$map
|
pascal@743
|
27 }
|
pascal@743
|
28
|
pascal@1631
|
29 # Rules to gen a SliTaz package suitable for Tazpkg.
|
pascal@1631
|
30 genpkg_rules()
|
pascal@1631
|
31 {
|
pascal@14770
|
32 cp -a $install/usr $fs
|
pascal@1631
|
33 }
|
pascal@1631
|
34
|