wok-current view kbd/receipt @ rev 15422
Up: thunderbird-langpack-it (17.0.9esr)
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Sun Nov 03 21:52:45 2013 +0100 (2013-11-03) |
parents | a4254bd509cd |
children | 159df010240c |
line source
1 # SliTaz package receipt.
3 PACKAGE="kbd"
4 VERSION="1.15.5"
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.gz"
10 WEB_SITE="http://kbd-project.org/"
11 #WGET_URL="http://kbd-project.org/download/$TARBALL"
12 WGET_URL="ftp://ftp.altlinux.org/pub/people/legion/kbd/$TARBALL"
13 TAGS="keyboard"
14 HOST_ARCH="i486 arm"
16 DEPENDS="kbd-base"
17 BUILD_DEPENDS="flex pam-dev"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 # standard locale placement
23 sed 's|localedir = .*|localedir = @localedir@|' -i $src/po/Makefile.in.in
24 ./configure \
25 --datadir=/usr/share/kbd \
26 --localedir=/usr/share/locale \
27 $CONFIGURE_ARGS &&
28 make && make install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/share
36 # Copy all kbd files (should we split fonts?)
37 cp -a $install/usr/share/kbd $fs/usr/share
39 # Tools
40 cp -a $install/usr/bin $fs/usr
42 # Remove files provided by kbd-base and kbd-vlock.
43 for keymap in $(cat $WOK/kbd-base/stuff/keymaps-path.list); do
44 rm -f $fs/usr/share/kbd/keymaps/i386/$keymap
45 done
46 rm -rf $fs/usr/share/kbd/keymaps/include
47 rm -rf $fs/usr/share/kbd/keymaps/i386/include
48 rm -f $fs/usr/bin/loadkeys $fs/usr/bin/vlock
49 }
51 # Overlap busybox
52 pre_install()
53 {
54 rm -f $root/usr/bin/deallocvt
55 rm -f $root/usr/bin/chvt
56 rm -f $root/usr/bin/setkeycodes
57 rm -f $root/usr/bin/openvt
58 rm -f $root/usr/bin/kbd_mode
59 }
61 post_remove()
62 {
63 ln -s /bin/busybox $root/usr/bin/deallocvt
64 ln -s /bin/busybox $root/usr/bin/chvt
65 ln -s /bin/busybox $root/usr/bin/setkeycodes
66 ln -s /bin/busybox $root/usr/bin/openvt
67 ln -s /bin/busybox $root/usr/bin/kbd_mode
68 }