wok-next view kbd/receipt @ rev 19722
Up net-snmp (5.7.3)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed May 24 18:42:05 2017 +0200 (2017-05-24) |
parents | f7d9f142f79d |
children | 9a17d981d0f7 |
line source
1 # SliTaz package receipt.
3 PACKAGE="kbd"
4 VERSION="2.0.3"
5 CATEGORY="system-tools"
6 SHORT_DESC="Keyboard mapping definitions and tools"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://kbd-project.org/"
10 TAGS="keyboard"
11 HOST_ARCH="i486 arm"
13 TARBALL="kbd-$VERSION.tar.xz"
14 WGET_URL="https://www.kernel.org/pub/linux/utils/kbd/$TARBALL"
16 DEPENDS="kbd-base"
17 BUILD_DEPENDS="check-dev bison flex gettext patch pam-dev"
18 SPLIT="kbd-base kbd-busybox kbd-vlock"
20 # Handle cross compilation.
21 case "$ARCH" in
22 arm) BUILD_DEPENDS="flex check-dev" ;;
23 esac
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 patch -Np1 -i $stuff/kbd-2.0.3-backspace-1.patch
29 sed -i 's/\(RESIZECONS_PROGS=\)yes/\1no/g' configure
30 sed -i 's/resizecons.8 //' docs/man/man8/Makefile.in
32 cp -a data/keymaps data/keymaps.orig
33 # Shrink keymaps
34 for i in $(find data/keymaps -type f); do
35 sed -i 's| | |g; s| *| |g; s|^ ||; s| $||; /^#/d; /^!/d; /^$/d' $i
36 done
38 ./configure \
39 --datadir=/usr/share/kbd \
40 $CONFIGURE_ARGS &&
41 make && make install
43 mv $install/usr/share/kbd/locale $install/usr/share
45 mkdir -p $install/usr/share/doc/kbd-$VERSION
46 cp -R docs/doc/* $install/usr/share/doc/kbd-$VERSION
48 # Cook packages before "kbd" packaging to properly work cook_split_rm()
49 cook kbd-base >/dev/null 2>&1
50 cook kbd-vlock >/dev/null 2>&1
51 }
53 # Rules to gen a SliTaz package suitable for Tazpkg.
54 genpkg_rules()
55 {
56 cook_copy_folders bin kbd
57 cook_split_rm kbd-base kbd-vlock
58 }