wok view kbd/receipt @ rev 11737
libplist: Add swig to build depends.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Tue Feb 21 17:14:24 2012 -0500 (2012-02-21) |
parents | eef7c8c8ad4e |
children | f6382af837a6 |
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 $CONFIGURE_ARGS &&
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 }