wok-4.x view kbd/receipt @ rev 9689
startup-notification: clean up.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Fri May 06 22:03:25 2011 +0000 (2011-05-06) |
parents | 9b7526485ebb |
children | eef7c8c8ad4e |
line source
1 # SliTaz package receipt.
3 PACKAGE="kbd"
4 VERSION="1.12"
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 ./configure \
19 --prefix=/usr \
20 --mandir=/usr/share/man
21 make
22 make DESTDIR=$PWD/_pkg install
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 mkdir -p $fs/usr/share
30 # Copy all kbd files (should we split fonts ?) and remove the one
31 # provided by: kbd-base.
32 cp -a $_pkg/usr/share/kbd $fs/usr/share
33 rm -rf $fs/usr/share/kbd/keymaps/i386
35 # Tools
36 cp -a $_pkg/usr/bin $fs/usr
37 }
39 # Overlap busybox
40 pre_install()
41 {
42 rm -f $1/usr/bin/deallocvt
43 rm -f $1/usr/bin/chvt
44 rm -f $1/usr/bin/setkeycodes
45 rm -f $1/usr/bin/openvt
46 rm -f $1/usr/bin/kbd_mode
47 }
49 post_remove()
50 {
51 ln -s /bin/busybox /usr/bin/deallocvt
52 ln -s /bin/busybox /usr/bin/chvt
53 ln -s /bin/busybox /usr/bin/setkeycodes
54 ln -s /bin/busybox /usr/bin/openvt
55 ln -s /bin/busybox /usr/bin/kbd_mode
56 }