wok-6.x view kbd/receipt @ rev 11396
Update linux-libre according to changes made to linux (since months)
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Sat Dec 10 06:11:04 2011 +0100 (2011-12-10) |
parents | 2ad34d8fdfe7 |
children | b7319995b37e |
line source
1 # SliTaz package receipt.
3 PACKAGE="kbd"
4 VERSION="1.15.3"
5 CATEGORY="system-tools"
6 SHORT_DESC="Keyboard maping definitions and tools."
7 BUILD_DEPENDS="flex"
8 MAINTAINER="pankso@slitaz.org"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.kernel.org/pub/linux/utils/kbd/"
11 WGET_URL="http://www.kernel.org/pub/linux/utils/kbd/$TARBALL"
12 TAGS="keyboard"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 patch -Np1 -i $stuff/fix-es.po.patch
19 ./configure --datadir=/usr/share/kbd &&
20 make &&
21 make install
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 mkdir -p $fs/usr/share
29 # Copy all kbd files (should we split fonts ?) and remove the one
30 # provided by: kbd-base.
31 cp -a $_pkg/usr/share/kbd $fs/usr/share
32 rm -rf $fs/usr/share/kbd/keymaps/i386
34 # Tools
35 cp -a $_pkg/usr/bin $fs/usr
36 }
38 # Overlap busybox
39 pre_install()
40 {
41 rm -f $1/usr/bin/deallocvt
42 rm -f $1/usr/bin/chvt
43 rm -f $1/usr/bin/setkeycodes
44 rm -f $1/usr/bin/openvt
45 rm -f $1/usr/bin/kbd_mode
46 }
48 post_remove()
49 {
50 ln -s /bin/busybox $1/usr/bin/deallocvt
51 ln -s /bin/busybox $1/usr/bin/chvt
52 ln -s /bin/busybox $1/usr/bin/setkeycodes
53 ln -s /bin/busybox $1/usr/bin/openvt
54 ln -s /bin/busybox $1/usr/bin/kbd_mode
55 }