wok-current view kbd/receipt @ rev 22297
updated xorg-xprop (1.2.1 -> 1.2.4)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Nov 13 16:42:31 2019 +0100 (2019-11-13) |
parents | d5d1aacad4ba |
children | 620819a54fad |
line source
1 # SliTaz package receipt.
3 PACKAGE="kbd"
4 VERSION="2.0.4"
5 CATEGORY="system-tools"
6 TAGS="keyboard"
7 SHORT_DESC="Keyboard mapping definitions and tools."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="http://kbd-project.org/"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="https://www.kernel.org/pub/linux/utils/kbd/$TARBALL"
15 DEPENDS="kbd-base"
16 BUILD_DEPENDS="advancecomp check-dev flex pam-dev"
17 HOST_ARCH="i486 arm"
19 # Handle cross compilation.
20 case "$ARCH" in
21 arm) BUILD_DEPENDS="check-dev flex" ;;
22 esac
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 # standard locale placement
28 sed 's|localedir = .*|localedir = @localedir@|' -i $src/po/Makefile.in.in
30 # Handle cross compilation.
31 case "$ARCH" in
32 arm)
33 # No PAM support for ARM
34 ./configure \
35 --datadir=/usr/share/kbd \
36 --localedir=/usr/share/locale \
37 --disable-vlock \
38 $CONFIGURE_ARGS ;;
39 i486)
40 ./configure \
41 --datadir=/usr/share/kbd \
42 --localedir=/usr/share/locale \
43 $CONFIGURE_ARGS ;;
44 esac &&
46 make -j 1 &&
47 make install &&
49 find $DESTDIR/usr/share/kbd -name '*gz' -exec advdef -z4 {} \;
50 }
53 # Rules to gen a SliTaz package suitable for Tazpkg.
54 genpkg_rules()
55 {
56 mkdir -p $fs/usr/share
58 # Copy all kbd files (should we split fonts?)
59 cp -a $install/usr/share/kbd $fs/usr/share
61 # Tools
62 cp -a $install/usr/bin $fs/usr
64 # Remove files provided by kbd-base and kbd-vlock.
65 for keymap in $(cat $WOK/kbd-base/stuff/keymaps-path.list); do
66 rm -f $fs/usr/share/kbd/keymaps/i386/$keymap
67 done
68 rm -rf $fs/usr/share/kbd/keymaps/include
69 rm -rf $fs/usr/share/kbd/keymaps/i386/include
70 rm -f $fs/usr/bin/loadkeys
71 rm -f $fs/usr/bin/setfont
72 rm -f $fs/usr/bin/vlock
73 }
75 # Overlap busybox
76 pre_install()
77 {
78 rm -f $root/usr/bin/deallocvt
79 rm -f $root/usr/bin/chvt
80 rm -f $root/usr/bin/setkeycodes
81 rm -f $root/usr/bin/openvt
82 rm -f $root/usr/bin/kbd_mode
83 }
85 post_remove()
86 {
87 ln -s /bin/busybox $root/usr/bin/deallocvt
88 ln -s /bin/busybox $root/usr/bin/chvt
89 ln -s /bin/busybox $root/usr/bin/setkeycodes
90 ln -s /bin/busybox $root/usr/bin/openvt
91 ln -s /bin/busybox $root/usr/bin/kbd_mode
92 }