wok view kbd/receipt @ rev 14770

Up busybox (1.21.1)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jun 29 17:32:45 2013 +0200 (2013-06-29)
parents f6382af837a6
children f1e757631080
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 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 TAGS="keyboard"
13 HOST_ARCH="i486 arm"
15 #BUILD_DEPENDS="flex"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 patch -Np1 -i $stuff/fix-es.po.patch
22 ./configure \
23 --datadir=/usr/share/kbd \
24 $CONFIGURE_ARGS &&
25 make && make install
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/usr/share
33 # Copy all kbd files (should we split fonts ?) and remove the one
34 # provided by: kbd-base.
35 cp -a $_pkg/usr/share/kbd $fs/usr/share
36 rm -rf $fs/usr/share/kbd/keymaps/i386
38 # Tools
39 cp -a $install/usr/bin $fs/usr
40 }
42 # Overlap busybox
43 pre_install()
44 {
45 rm -f $root/usr/bin/deallocvt
46 rm -f $root/usr/bin/chvt
47 rm -f $root/usr/bin/setkeycodes
48 rm -f $root/usr/bin/openvt
49 rm -f $root/usr/bin/kbd_mode
50 }
52 post_remove()
53 {
54 ln -s /bin/busybox $root/usr/bin/deallocvt
55 ln -s /bin/busybox $root/usr/bin/chvt
56 ln -s /bin/busybox $root/usr/bin/setkeycodes
57 ln -s /bin/busybox $root/usr/bin/openvt
58 ln -s /bin/busybox $root/usr/bin/kbd_mode
59 }