wok-next annotate kbd/receipt @ rev 20062

Up libgdiplus (5.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Oct 24 09:24:06 2017 +0200 (2017-10-24)
parents 67cf55bc903b
children 90a5eb560fd6
rev   line source
al@19745 1 # SliTaz package receipt v2.
pankso@708 2
pankso@708 3 PACKAGE="kbd"
al@19745 4 VERSION="2.0.4"
pankso@708 5 CATEGORY="system-tools"
al@19581 6 SHORT_DESC="Keyboard mapping definitions and tools"
pankso@708 7 MAINTAINER="pankso@slitaz.org"
pascal@14770 8 LICENSE="GPL2"
pankso@12882 9 WEB_SITE="http://kbd-project.org/"
pankso@12882 10 HOST_ARCH="i486 arm"
pankso@12882 11
al@19581 12 TARBALL="kbd-$VERSION.tar.xz"
al@19581 13 WGET_URL="https://www.kernel.org/pub/linux/utils/kbd/$TARBALL"
al@19581 14
al@19745 15 BUILD_DEPENDS="check-dev bison flex gettext patch pam-dev busybox"
al@19745 16 BUILD_DEPENDS_arm="flex check-dev"
al@19745 17 SPLIT="kbd-base kbd-vlock kbd-busybox kbd"
pankso@708 18
pankso@708 19 # Rules to configure and make the package.
pankso@708 20 compile_rules()
pankso@708 21 {
al@19581 22 sed -i 's/\(RESIZECONS_PROGS=\)yes/\1no/g' configure
al@19581 23 sed -i 's/resizecons.8 //' docs/man/man8/Makefile.in
al@19581 24
al@19581 25 cp -a data/keymaps data/keymaps.orig
al@19581 26 # Shrink keymaps
al@19581 27 for i in $(find data/keymaps -type f); do
al@19581 28 sed -i 's| | |g; s| *| |g; s|^ ||; s| $||; /^#/d; /^!/d; /^$/d' $i
al@19581 29 done
al@19581 30
al@19581 31 ./configure \
al@19581 32 --datadir=/usr/share/kbd \
al@19581 33 $CONFIGURE_ARGS &&
al@19581 34 make && make install
al@19581 35
al@19581 36 mv $install/usr/share/kbd/locale $install/usr/share
al@19581 37
al@19581 38 mkdir -p $install/usr/share/doc/kbd-$VERSION
al@19581 39 cp -R docs/doc/* $install/usr/share/doc/kbd-$VERSION
al@19581 40
al@19745 41 # X11 keyboard aliases
al@19745 42 ln -s croat.map.gz $install/usr/share/kbd/keymaps/i386/qwertz/hr.map.gz
al@19745 43
al@19745 44 # .kmap files for busybox
al@19745 45 mkdir -p $install/usr/share/kmap
al@19745 46 for i in $(find $install/usr/share/kbd/keymaps/i386 -name '*.map.gz' | grep -v 'include'); do
al@19745 47 j=$(basename $i .map.gz)
al@19745 48 echo $j
al@19745 49 $install/usr/bin/loadkeys -ub $i > $install/usr/share/kmap/$j.kmap
al@19745 50 done
al@19745 51 }
al@19745 52
al@19745 53 # Make sure it will run on host or no keyboard support...
al@19745 54 testsuite()
al@19745 55 {
al@19745 56 readelf -h $install/usr/bin/loadkeys
al@19745 57 readelf -h $install/usr/bin/setfont
pankso@708 58 }
pankso@708 59
pankso@708 60 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@708 61 genpkg_rules()
pankso@708 62 {
al@19745 63 case $PACKAGE in
al@19745 64 kbd-base)
al@19745 65 copy loadkeys setfont \
al@19745 66 \
al@19745 67 be-latin1.map* fr-latin1.map* dvorak.map* dvorak-r.map* \
al@19745 68 dvorak-l.map* br-abnt2.map* cf.map* cz-lat2.map* \
al@19745 69 dk-latin1.map* es.map* fi.map* gr.map* \
al@19745 70 gr-pc.map* it.map* is-latin1.map* jp106.map* \
al@19745 71 nl2.map* no-latin1.map* pl2.map* pt-latin1.map* \
al@19745 72 ru.map* se-lat6.map* tr_q-latin5.map* trq.map* \
al@19745 73 uk.map* us-acentos.map* us.map* croat.map* \
al@19745 74 de_CH-latin1.map* de-latin1.map* fr_CH-latin1.map* hu.map* \
al@19745 75 sg-latin1.map* slovene.map* hr.map* \
al@19745 76 \
al@19745 77 azerty-layout.inc compose.inc euro1.inc euro1.map.gz euro2.map.gz \
al@19745 78 linux-keys-bare.inc linux-with-alt-and-altgr.inc \
al@19745 79 linux-with-two-alt-keys.inc qwerty-layout.inc qwertz-layout.inc \
al@19745 80 compose.latin1
al@19745 81 rm -rf $fs/usr/share/kbd/keymaps/i386/olpc
al@19745 82 DEPENDS=" "
al@19745 83 CAT="base-system|loadkeys and setfont utilities"
al@19745 84 ;;
al@19745 85 kbd-vlock)
al@19745 86 copy vlock
al@19745 87 CAT="system-tools|vlock - Virtual Console lock program"
al@19745 88 DEPENDS="pam"
al@19745 89 TAGS="console"
al@19745 90 ;;
al@19745 91 kbd-busybox)
al@19745 92 copy *.kmap
al@19745 93 DEPENDS="busybox"
al@19745 94 CAT="base-system|mappings for busybox"
al@19745 95 ;;
al@19745 96 kbd)
al@19745 97 copy bin/ kbd/
al@19745 98 remove_already_packed
al@19745 99 DEPENDS="kbd-base"
al@19745 100 TAGS="keyboard"
al@19745 101 ;;
al@19745 102 esac
pankso@708 103 }