wok view kbd/receipt @ rev 13389

autossh: fix genpkg_rules
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Sep 24 11:39:21 2012 +0200 (2012-09-24)
parents b7319995b37e
children a4254bd509cd
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 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://kbd-project.org/"
10 WGET_URL="http://kbd-project.org/download/$TARBALL"
11 TAGS="keyboard"
12 HOST_ARCH="i486 arm"
14 #BUILD_DEPENDS="flex"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 patch -Np1 -i $stuff/fix-es.po.patch
21 ./configure \
22 --datadir=/usr/share/kbd \
23 $CONFIGURE_ARGS &&
24 make && make install
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/usr/share
32 # Copy all kbd files (should we split fonts ?) and remove the one
33 # provided by: kbd-base.
34 cp -a $_pkg/usr/share/kbd $fs/usr/share
35 rm -rf $fs/usr/share/kbd/keymaps/i386
37 # Tools
38 cp -a $install/usr/bin $fs/usr
39 }
41 # Overlap busybox
42 pre_install()
43 {
44 rm -f $root/usr/bin/deallocvt
45 rm -f $root/usr/bin/chvt
46 rm -f $root/usr/bin/setkeycodes
47 rm -f $root/usr/bin/openvt
48 rm -f $root/usr/bin/kbd_mode
49 }
51 post_remove()
52 {
53 ln -s /bin/busybox $root/usr/bin/deallocvt
54 ln -s /bin/busybox $root/usr/bin/chvt
55 ln -s /bin/busybox $root/usr/bin/setkeycodes
56 ln -s /bin/busybox $root/usr/bin/openvt
57 ln -s /bin/busybox $root/usr/bin/kbd_mode
58 }