wok-next view kbd/receipt @ rev 19627
busybox: uclibc-cross-compiler-i486 is not compatible with aufs+tmpfs
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Feb 08 18:20:24 2017 +0100 (2017-02-08) |
parents | d5d1aacad4ba |
children | 67cf55bc903b |
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 advancecomp"
18 SPLIT="kbd-base kbd-busybox"
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 --disable-vlock \
41 $CONFIGURE_ARGS &&
42 make && make install
44 mv $install/usr/share/kbd/locale $install/usr/share
46 mkdir -p $install/usr/share/doc/kbd-$VERSION
47 cp -R docs/doc/* $install/usr/share/doc/kbd-$VERSION
49 if [ -n "$(which advdef)" ]; then
50 action 'Recompressing GZ files...'
51 local size0=$(find $install/usr/share/kbd -name '*.gz' -exec ls -l \{\} \; | awk '{s+=$5}END{print s}')
52 local time0=$(date +%s)
53 find $install/usr/share/kbd -name '*.gz' -exec advdef -z4q \{\} \;
54 local size1=$(find $install/usr/share/kbd -name '*.gz' -exec ls -l \{\} \; | awk '{s+=$5}END{print s}')
55 local time1=$(date +%s)
56 status
57 comp_summary "$time0" "$time1" "$size0" "$size1"
58 fi
60 # Cook "kbd-base" before "kbd" packaging to properly work cook_split_rm()
61 cook kbd-base >/dev/null 2>&1
62 }
64 # Rules to gen a SliTaz package suitable for Tazpkg.
65 genpkg_rules()
66 {
67 cook_copy_folders bin kbd
68 cook_split_rm kbd-base
69 }