wok-next view kbd/receipt @ rev 20079

Up emacs (2.53)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Oct 25 11:21:45 2017 +0200 (2017-10-25)
parents 67cf55bc903b
children 90a5eb560fd6
line source
1 # SliTaz package receipt v2.
3 PACKAGE="kbd"
4 VERSION="2.0.4"
5 CATEGORY="system-tools"
6 SHORT_DESC="Keyboard mapping definitions and tools"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://kbd-project.org/"
10 HOST_ARCH="i486 arm"
12 TARBALL="kbd-$VERSION.tar.xz"
13 WGET_URL="https://www.kernel.org/pub/linux/utils/kbd/$TARBALL"
15 BUILD_DEPENDS="check-dev bison flex gettext patch pam-dev busybox"
16 BUILD_DEPENDS_arm="flex check-dev"
17 SPLIT="kbd-base kbd-vlock kbd-busybox kbd"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 sed -i 's/\(RESIZECONS_PROGS=\)yes/\1no/g' configure
23 sed -i 's/resizecons.8 //' docs/man/man8/Makefile.in
25 cp -a data/keymaps data/keymaps.orig
26 # Shrink keymaps
27 for i in $(find data/keymaps -type f); do
28 sed -i 's| | |g; s| *| |g; s|^ ||; s| $||; /^#/d; /^!/d; /^$/d' $i
29 done
31 ./configure \
32 --datadir=/usr/share/kbd \
33 $CONFIGURE_ARGS &&
34 make && make install
36 mv $install/usr/share/kbd/locale $install/usr/share
38 mkdir -p $install/usr/share/doc/kbd-$VERSION
39 cp -R docs/doc/* $install/usr/share/doc/kbd-$VERSION
41 # X11 keyboard aliases
42 ln -s croat.map.gz $install/usr/share/kbd/keymaps/i386/qwertz/hr.map.gz
44 # .kmap files for busybox
45 mkdir -p $install/usr/share/kmap
46 for i in $(find $install/usr/share/kbd/keymaps/i386 -name '*.map.gz' | grep -v 'include'); do
47 j=$(basename $i .map.gz)
48 echo $j
49 $install/usr/bin/loadkeys -ub $i > $install/usr/share/kmap/$j.kmap
50 done
51 }
53 # Make sure it will run on host or no keyboard support...
54 testsuite()
55 {
56 readelf -h $install/usr/bin/loadkeys
57 readelf -h $install/usr/bin/setfont
58 }
60 # Rules to gen a SliTaz package suitable for Tazpkg.
61 genpkg_rules()
62 {
63 case $PACKAGE in
64 kbd-base)
65 copy loadkeys setfont \
66 \
67 be-latin1.map* fr-latin1.map* dvorak.map* dvorak-r.map* \
68 dvorak-l.map* br-abnt2.map* cf.map* cz-lat2.map* \
69 dk-latin1.map* es.map* fi.map* gr.map* \
70 gr-pc.map* it.map* is-latin1.map* jp106.map* \
71 nl2.map* no-latin1.map* pl2.map* pt-latin1.map* \
72 ru.map* se-lat6.map* tr_q-latin5.map* trq.map* \
73 uk.map* us-acentos.map* us.map* croat.map* \
74 de_CH-latin1.map* de-latin1.map* fr_CH-latin1.map* hu.map* \
75 sg-latin1.map* slovene.map* hr.map* \
76 \
77 azerty-layout.inc compose.inc euro1.inc euro1.map.gz euro2.map.gz \
78 linux-keys-bare.inc linux-with-alt-and-altgr.inc \
79 linux-with-two-alt-keys.inc qwerty-layout.inc qwertz-layout.inc \
80 compose.latin1
81 rm -rf $fs/usr/share/kbd/keymaps/i386/olpc
82 DEPENDS=" "
83 CAT="base-system|loadkeys and setfont utilities"
84 ;;
85 kbd-vlock)
86 copy vlock
87 CAT="system-tools|vlock - Virtual Console lock program"
88 DEPENDS="pam"
89 TAGS="console"
90 ;;
91 kbd-busybox)
92 copy *.kmap
93 DEPENDS="busybox"
94 CAT="base-system|mappings for busybox"
95 ;;
96 kbd)
97 copy bin/ kbd/
98 remove_already_packed
99 DEPENDS="kbd-base"
100 TAGS="keyboard"
101 ;;
102 esac
103 }