wok-6.x view kbd/receipt @ rev 23767
updated firefox-official packages (75.0 -> 76.0)
author | Hans-G?nter Theisgen |
---|---|
date | Sat May 09 11:07:16 2020 +0100 (2020-05-09) |
parents | b0cfa2140c91 |
children | a3b6dd3aac6f |
line source
1 # SliTaz package receipt.
3 PACKAGE="kbd"
4 VERSION="2.2.0"
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"
18 HOST_ARCH="i486 arm"
20 # Handle cross compilation.
21 case "$ARCH" in
22 arm) BUILD_DEPENDS="check-dev flex" ;;
23 esac
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 # standard locale placement
29 sed -i 's|localedir = .*|localedir = @localedir@|' \
30 po/Makefile.in.in
32 # Handle cross compilation.
33 case "$ARCH" in
34 arm)
35 # No PAM support for ARM
36 ./configure \
37 --datadir=/usr/share/kbd \
38 --localedir=/usr/share/locale \
39 --disable-vlock \
40 $CONFIGURE_ARGS ;;
41 i486)
42 ./configure \
43 --datadir=/usr/share/kbd \
44 --localedir=/usr/share/locale \
45 $CONFIGURE_ARGS ;;
46 esac &&
47 make -j 1 &&
48 make install &&
50 find $DESTDIR/usr/share/kbd -name '*gz' -exec advdef -z4 {} \;
51 }
54 # Rules to gen a SliTaz package suitable for Tazpkg.
55 genpkg_rules()
56 {
57 mkdir -p $fs/usr/share
59 # Copy all kbd files (should we split fonts?)
60 cp -a $install/usr/share/kbd $fs/usr/share
62 # Tools
63 cp -a $install/usr/bin $fs/usr
65 # Remove files provided by kbd-base and kbd-vlock.
66 for keymap in $(cat $WOK/kbd-base/stuff/keymaps-path.list)
67 do
68 rm -f $fs/usr/share/kbd/keymaps/i386/$keymap
69 done
70 rm -rf $fs/usr/share/kbd/keymaps/include
71 rm -rf $fs/usr/share/kbd/keymaps/i386/include
72 rm -f $fs/usr/bin/loadkeys
73 rm -f $fs/usr/bin/setfont
74 rm -f $fs/usr/bin/vlock
75 }
77 # Overlap busybox
78 pre_install()
79 {
80 rm -f $root/usr/bin/deallocvt
81 rm -f $root/usr/bin/chvt
82 rm -f $root/usr/bin/setkeycodes
83 rm -f $root/usr/bin/openvt
84 rm -f $root/usr/bin/kbd_mode
85 }
87 post_remove()
88 {
89 ln -s /bin/busybox $root/usr/bin/deallocvt
90 ln -s /bin/busybox $root/usr/bin/chvt
91 ln -s /bin/busybox $root/usr/bin/setkeycodes
92 ln -s /bin/busybox $root/usr/bin/openvt
93 ln -s /bin/busybox $root/usr/bin/kbd_mode
94 }