wok-next diff kbd/receipt @ rev 20364
Up palemoon (27.6.1)
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Fri Nov 24 05:32:16 2017 +0100 (2017-11-24) |
parents | 67cf55bc903b |
children | 90a5eb560fd6 |
line diff
1.1 --- a/kbd/receipt Thu Feb 09 00:42:35 2017 +0200 1.2 +++ b/kbd/receipt Fri Nov 24 05:32:16 2017 +0100 1.3 @@ -1,31 +1,24 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="kbd" 1.8 -VERSION="2.0.3" 1.9 +VERSION="2.0.4" 1.10 CATEGORY="system-tools" 1.11 SHORT_DESC="Keyboard mapping definitions and tools" 1.12 MAINTAINER="pankso@slitaz.org" 1.13 LICENSE="GPL2" 1.14 WEB_SITE="http://kbd-project.org/" 1.15 -TAGS="keyboard" 1.16 HOST_ARCH="i486 arm" 1.17 1.18 TARBALL="kbd-$VERSION.tar.xz" 1.19 WGET_URL="https://www.kernel.org/pub/linux/utils/kbd/$TARBALL" 1.20 1.21 -DEPENDS="kbd-base" 1.22 -BUILD_DEPENDS="check-dev bison flex gettext patch pam-dev" 1.23 -SPLIT="kbd-base kbd-busybox kbd-vlock" 1.24 - 1.25 -# Handle cross compilation. 1.26 -case "$ARCH" in 1.27 - arm) BUILD_DEPENDS="flex check-dev" ;; 1.28 -esac 1.29 +BUILD_DEPENDS="check-dev bison flex gettext patch pam-dev busybox" 1.30 +BUILD_DEPENDS_arm="flex check-dev" 1.31 +SPLIT="kbd-base kbd-vlock kbd-busybox kbd" 1.32 1.33 # Rules to configure and make the package. 1.34 compile_rules() 1.35 { 1.36 - patch -Np1 -i $stuff/kbd-2.0.3-backspace-1.patch 1.37 sed -i 's/\(RESIZECONS_PROGS=\)yes/\1no/g' configure 1.38 sed -i 's/resizecons.8 //' docs/man/man8/Makefile.in 1.39 1.40 @@ -45,14 +38,66 @@ 1.41 mkdir -p $install/usr/share/doc/kbd-$VERSION 1.42 cp -R docs/doc/* $install/usr/share/doc/kbd-$VERSION 1.43 1.44 - # Cook packages before "kbd" packaging to properly work cook_split_rm() 1.45 - cook kbd-base >/dev/null 2>&1 1.46 - cook kbd-vlock >/dev/null 2>&1 1.47 + # X11 keyboard aliases 1.48 + ln -s croat.map.gz $install/usr/share/kbd/keymaps/i386/qwertz/hr.map.gz 1.49 + 1.50 + # .kmap files for busybox 1.51 + mkdir -p $install/usr/share/kmap 1.52 + for i in $(find $install/usr/share/kbd/keymaps/i386 -name '*.map.gz' | grep -v 'include'); do 1.53 + j=$(basename $i .map.gz) 1.54 + echo $j 1.55 + $install/usr/bin/loadkeys -ub $i > $install/usr/share/kmap/$j.kmap 1.56 + done 1.57 +} 1.58 + 1.59 +# Make sure it will run on host or no keyboard support... 1.60 +testsuite() 1.61 +{ 1.62 + readelf -h $install/usr/bin/loadkeys 1.63 + readelf -h $install/usr/bin/setfont 1.64 } 1.65 1.66 # Rules to gen a SliTaz package suitable for Tazpkg. 1.67 genpkg_rules() 1.68 { 1.69 - cook_copy_folders bin kbd 1.70 - cook_split_rm kbd-base kbd-vlock 1.71 + case $PACKAGE in 1.72 + kbd-base) 1.73 + copy loadkeys setfont \ 1.74 + \ 1.75 + be-latin1.map* fr-latin1.map* dvorak.map* dvorak-r.map* \ 1.76 + dvorak-l.map* br-abnt2.map* cf.map* cz-lat2.map* \ 1.77 + dk-latin1.map* es.map* fi.map* gr.map* \ 1.78 + gr-pc.map* it.map* is-latin1.map* jp106.map* \ 1.79 + nl2.map* no-latin1.map* pl2.map* pt-latin1.map* \ 1.80 + ru.map* se-lat6.map* tr_q-latin5.map* trq.map* \ 1.81 + uk.map* us-acentos.map* us.map* croat.map* \ 1.82 + de_CH-latin1.map* de-latin1.map* fr_CH-latin1.map* hu.map* \ 1.83 + sg-latin1.map* slovene.map* hr.map* \ 1.84 + \ 1.85 + azerty-layout.inc compose.inc euro1.inc euro1.map.gz euro2.map.gz \ 1.86 + linux-keys-bare.inc linux-with-alt-and-altgr.inc \ 1.87 + linux-with-two-alt-keys.inc qwerty-layout.inc qwertz-layout.inc \ 1.88 + compose.latin1 1.89 + rm -rf $fs/usr/share/kbd/keymaps/i386/olpc 1.90 + DEPENDS=" " 1.91 + CAT="base-system|loadkeys and setfont utilities" 1.92 + ;; 1.93 + kbd-vlock) 1.94 + copy vlock 1.95 + CAT="system-tools|vlock - Virtual Console lock program" 1.96 + DEPENDS="pam" 1.97 + TAGS="console" 1.98 + ;; 1.99 + kbd-busybox) 1.100 + copy *.kmap 1.101 + DEPENDS="busybox" 1.102 + CAT="base-system|mappings for busybox" 1.103 + ;; 1.104 + kbd) 1.105 + copy bin/ kbd/ 1.106 + remove_already_packed 1.107 + DEPENDS="kbd-base" 1.108 + TAGS="keyboard" 1.109 + ;; 1.110 + esac 1.111 }