wok-current view kbd-busybox/receipt @ rev 14871

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