wok-next view kbd/receipt @ rev 21403
updated php again (7.4.4 -> 7.4.5)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Apr 21 10:28:30 2020 +0100 (2020-04-21) |
parents | d5aab818505e |
children |
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="devel@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://kbd-project.org/"
10 LFS="http://www.linuxfromscratch.org/lfs/view/stable/chapter06/kbd.html"
12 TARBALL="kbd-$VERSION.tar.xz"
13 WGET_URL="https://www.kernel.org/pub/linux/utils/kbd/$TARBALL"
14 TARBALL_SHA1="9aeac5556b827a9f13ccdb25257a1ac4b0243387"
16 BUILD_DEPENDS="check-dev bison flex gettext-dev patch pam-dev busybox"
17 SPLIT="$PACKAGE-base $PACKAGE-vlock $PACKAGE-busybox $PACKAGE"
19 COPY_base="loadkeys setfont \
20 be-latin1.map* fr-latin1.map* dvorak.map* dvorak-r.map* \
21 dvorak-l.map* br-abnt2.map* cf.map* cz-lat2.map* \
22 dk-latin1.map* qwerty/es.map* fi.map* gr.map* \
23 gr-pc.map* it.map* is-latin1.map* jp106.map* \
24 nl2.map* no-latin1.map* pl2.map* pt-latin1.map* \
25 ru.map* se-lat6.map* tr_q-latin5.map* trq.map* \
26 uk.map* us-acentos.map* us.map* croat.map* \
27 de_CH-latin1.map* de-latin1.map* fr_CH-latin1.map* hu.map* \
28 sg-latin1.map* slovene.map* hr.map* \
29 \
30 azerty-layout.inc compose.inc euro1.inc euro1.map.gz euro2.map.gz \
31 linux-keys-bare.inc linux-with-alt-and-altgr.inc \
32 linux-with-two-alt-keys.inc qwerty-layout.inc qwertz-layout.inc \
33 compose.latin1"
34 COPY_vlock="vlock"
35 COPY_busybox="*.kmap"
36 COPY_std="bin/ kbd/ @rm"
38 DEPENDS_base=" "
39 DEPENDS_vlock="pam"
40 DEPENDS_busybox="busybox"
41 DEPENDS_std="$PACKAGE-base"
43 CAT_base="base-system|loadkeys and setfont utilities"
44 CAT_vlock="system-tools|vlock - Virtual Console lock program"
45 CAT_busybox="base-system|mappings for busybox"
47 TAGS_vlock="console"
48 TAGS_std="LFS keyboard"
50 compile_rules() {
51 sed -i 's/\(RESIZECONS_PROGS=\)yes/\1no/g' configure
52 sed -i 's/resizecons.8 //' docs/man/man8/Makefile.in
54 cp -a data/keymaps data/keymaps.orig
55 # Shrink keymaps
56 for i in $(find data/keymaps -type f); do
57 sed -i 's| | |g; s| *| |g; s|^ ||; s| $||; /^#/d; /^!/d; /^$/d' $i
58 done
60 # Unicode range is limited by 0xf000 here with error "Unicode keysym out of range",
61 # but de_alt_UTF-8.map has the symbols U+FB01, U+F8FF, U+FB02
62 # And due to this error zero-sized file .kmap is produced.
63 sed -i 's|0xf000|0xfffe|' src/libkeymap/analyze.c src/libkeymap/analyze.l
65 ./configure \
66 --datadir=/usr/share/kbd \
67 $CONFIGURE_ARGS &&
68 fix libtool &&
69 make &&
70 make install || return 1
72 mv $install/usr/share/kbd/locale $install/usr/share
74 cook_pick_docs docs/doc/*
76 # X11 keyboard aliases
77 ln -s croat.map.gz $install/usr/share/kbd/keymaps/i386/qwertz/hr.map.gz
79 # .kmap files for busybox
80 mkdir -p $install/usr/share/kmap
81 for i in $(find $install/usr/share/kbd/keymaps/i386 -name '*.map.gz' | grep -v 'include'); do
82 j=$(basename $i .map.gz)
83 action "Making $j.kmap..."
84 $install/usr/bin/loadkeys -ub $i > $install/usr/share/kmap/$j.kmap
85 status
86 done
87 }
89 # Make sure it will run on target or no keyboard support...
90 testsuite() {
91 readelf -h $install/usr/bin/loadkeys
92 readelf -h $install/usr/bin/setfont
93 }