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