wok view kbd/receipt @ rev 20310

syslinux/isohybrid.sh: resize EFI partition (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon May 14 17:12:15 2018 +0200 (2018-05-14)
parents 36278632a653
children b0cfa2140c91
line source
1 # SliTaz package receipt.
3 PACKAGE="kbd"
4 VERSION="2.0.2"
5 CATEGORY="system-tools"
6 SHORT_DESC="Keyboard maping definitions and tools."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.xz"
10 WEB_SITE="http://kbd-project.org/"
11 WGET_URL="https://www.kernel.org/pub/linux/utils/kbd/$TARBALL"
12 TAGS="keyboard"
13 HOST_ARCH="i486 arm"
15 DEPENDS="kbd-base"
16 BUILD_DEPENDS="wget flex pam-dev check-dev advancecomp"
18 # Handle cross compilation.
19 case "$ARCH" in
20 arm) BUILD_DEPENDS="flex check-dev" ;;
21 esac
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 # standard locale placement
27 sed 's|localedir = .*|localedir = @localedir@|' -i $src/po/Makefile.in.in
28 # Handle cross compilation.
29 case "$ARCH" in
30 arm)
31 # No PAM support for ARM
32 ./configure \
33 --datadir=/usr/share/kbd \
34 --localedir=/usr/share/locale \
35 --disable-vlock \
36 $CONFIGURE_ARGS ;;
37 i486)
38 ./configure \
39 --datadir=/usr/share/kbd \
40 --localedir=/usr/share/locale \
41 $CONFIGURE_ARGS ;;
42 esac &&
43 make && make install &&
44 find $DESTDIR/usr/share/kbd -name '*gz' -exec advdef -z4 {} \;
45 }
48 # Rules to gen a SliTaz package suitable for Tazpkg.
49 genpkg_rules()
50 {
51 mkdir -p $fs/usr/share
53 # Copy all kbd files (should we split fonts?)
54 cp -a $install/usr/share/kbd $fs/usr/share
56 # Tools
57 cp -a $install/usr/bin $fs/usr
59 # Remove files provided by kbd-base and kbd-vlock.
60 for keymap in $(cat $WOK/kbd-base/stuff/keymaps-path.list); do
61 rm -f $fs/usr/share/kbd/keymaps/i386/$keymap
62 done
63 rm -rf $fs/usr/share/kbd/keymaps/include
64 rm -rf $fs/usr/share/kbd/keymaps/i386/include
65 rm -f $fs/usr/bin/loadkeys $fs/usr/bin/setfont $fs/usr/bin/vlock
66 }
68 # Overlap busybox
69 pre_install()
70 {
71 rm -f $root/usr/bin/deallocvt
72 rm -f $root/usr/bin/chvt
73 rm -f $root/usr/bin/setkeycodes
74 rm -f $root/usr/bin/openvt
75 rm -f $root/usr/bin/kbd_mode
76 }
78 post_remove()
79 {
80 ln -s /bin/busybox $root/usr/bin/deallocvt
81 ln -s /bin/busybox $root/usr/bin/chvt
82 ln -s /bin/busybox $root/usr/bin/setkeycodes
83 ln -s /bin/busybox $root/usr/bin/openvt
84 ln -s /bin/busybox $root/usr/bin/kbd_mode
85 }