wok-next view kbd-base/receipt @ rev 18996

Up and Add Info (description) files and acpid correct weblink
author Leonardo Laporte <hackdorte@sapo.pt>
date Sat Mar 19 03:33:36 2016 -0300 (2016-03-19)
parents 159df010240c
children f7d9f142f79d
line source
1 # SliTaz package receipt.
3 PACKAGE="kbd-base"
4 VERSION="2.0.2"
5 CATEGORY="base-system"
6 SHORT_DESC="Keyboard mapping definitions, loadkeys and setfont utilities"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://kbd-project.org/"
10 HOST_ARCH="i486 arm"
12 WANTED="kbd"
14 # Make sure it will run on host or no keyboard support...
15 testsuite()
16 {
17 readelf -h $install/usr/bin/loadkeys
18 readelf -h $install/usr/bin/setfont
19 }
21 # Rules to gen a SliTaz package suitable for Tazpkg.
22 genpkg_rules()
23 {
24 mkdir -p $fs/bin
25 cp -a $install/usr/bin/loadkeys $install/usr/bin/setfont $fs/bin
27 # Dirs
28 for dir in dvorak azerty qwerty qwertz; do
29 mkdir -p $fs/usr/share/kbd/keymaps/i386/$dir
30 done
32 # i386 keymaps only.
33 for keymap in $(cat $stuff/keymaps-path.list); do
34 cp -a $install/usr/share/kbd/keymaps/i386/$keymap \
35 $fs/usr/share/kbd/keymaps/i386/$keymap
36 done
38 # Include files
39 cp -a $install/usr/share/kbd/keymaps/include \
40 $fs/usr/share/kbd/keymaps
41 cp -a $install/usr/share/kbd/keymaps/i386/include \
42 $fs/usr/share/kbd/keymaps/i386/include
44 # X11 keyboard aliases
45 while read X keymap ; do
46 ln -s $keymap.map.gz $fs/usr/share/kbd/keymaps/i386/$X.map.gz
47 done <<EOT
48 qwertz/hr croat
49 EOT
50 }