wok-next view kbd/receipt @ rev 16020
libvorbis: add to ARM arch
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Mar 05 23:46:52 2014 +0100 (2014-03-05) |
parents | 159df010240c |
children | 313f1cfd0a62 |
line source
1 # SliTaz package receipt.
3 PACKAGE="kbd"
4 VERSION="2.0.1"
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="ftp://ftp.kernel.org/pub/linux/utils/kbd/$TARBALL"
12 TAGS="keyboard"
13 HOST_ARCH="i486 arm"
15 DEPENDS="kbd-base"
16 BUILD_DEPENDS="flex pam-dev check-dev"
18 # Handle cross compilation.
19 case "$ARCH" in
20 arm) BUILD_DEPENDS="flex check-dev" ;;
21 esac
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 # standard locale placement
27 sed 's|localedir = .*|localedir = @localedir@|' -i $src/po/Makefile.in.in
28 # Handle cross compilation.
29 case "$ARCH" in
30 arm)
31 # No PAM support for ARM
32 ./configure \
33 --datadir=/usr/share/kbd \
34 --localedir=/usr/share/locale \
35 --disable-vlock \
36 $CONFIGURE_ARGS ;;
37 i486)
38 ./configure \
39 --datadir=/usr/share/kbd \
40 --localedir=/usr/share/locale \
41 $CONFIGURE_ARGS ;;
42 esac &&
43 make && make install
44 }
46 # Rules to gen a SliTaz package suitable for Tazpkg.
47 genpkg_rules()
48 {
49 mkdir -p $fs/usr/share
51 # Copy all kbd files (should we split fonts?)
52 cp -a $install/usr/share/kbd $fs/usr/share
54 # Tools
55 cp -a $install/usr/bin $fs/usr
57 # Remove files provided by kbd-base and kbd-vlock.
58 for keymap in $(cat $WOK/kbd-base/stuff/keymaps-path.list); do
59 rm -f $fs/usr/share/kbd/keymaps/i386/$keymap
60 done
61 rm -rf $fs/usr/share/kbd/keymaps/include
62 rm -rf $fs/usr/share/kbd/keymaps/i386/include
63 rm -f $fs/usr/bin/loadkeys $fs/usr/bin/vlock
64 }
66 # Overlap busybox
67 pre_install()
68 {
69 rm -f $root/usr/bin/deallocvt
70 rm -f $root/usr/bin/chvt
71 rm -f $root/usr/bin/setkeycodes
72 rm -f $root/usr/bin/openvt
73 rm -f $root/usr/bin/kbd_mode
74 }
76 post_remove()
77 {
78 ln -s /bin/busybox $root/usr/bin/deallocvt
79 ln -s /bin/busybox $root/usr/bin/chvt
80 ln -s /bin/busybox $root/usr/bin/setkeycodes
81 ln -s /bin/busybox $root/usr/bin/openvt
82 ln -s /bin/busybox $root/usr/bin/kbd_mode
83 }