wok annotate kbd-base/receipt @ rev 22686
Up pssh (2.3.1)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jan 19 16:24:05 2020 +0100 (2020-01-19) |
parents | 313f1cfd0a62 |
children | 620819a54fad |
rev | line source |
---|---|
pankso@708 | 1 # SliTaz package receipt. |
pankso@708 | 2 |
pankso@708 | 3 PACKAGE="kbd-base" |
Hans-G?nter@21089 | 4 VERSION="2.0.4" |
pankso@708 | 5 CATEGORY="base-system" |
Hans-G?nter@21089 | 6 SHORT_DESC="Keyboard mapping definitions, loadkeys and setfont utilities." |
pankso@708 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@14770 | 8 LICENSE="GPL2" |
pankso@12882 | 9 WEB_SITE="http://kbd-project.org/" |
pankso@12882 | 10 |
al@14904 | 11 WANTED="kbd" |
Hans-G?nter@21089 | 12 HOST_ARCH="i486 arm" |
al@14904 | 13 |
pankso@12882 | 14 # Make sure it will run on host or no keyboard support... |
pankso@12882 | 15 testsuite() |
pankso@12882 | 16 { |
pankso@12882 | 17 readelf -h $install/usr/bin/loadkeys |
al@17920 | 18 readelf -h $install/usr/bin/setfont |
pankso@12882 | 19 } |
pankso@708 | 20 |
pankso@708 | 21 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@708 | 22 genpkg_rules() |
pankso@708 | 23 { |
pankso@12882 | 24 mkdir -p $fs/bin |
al@17920 | 25 cp -a $install/usr/bin/loadkeys $install/usr/bin/setfont $fs/bin |
al@14904 | 26 |
pankso@12882 | 27 # Dirs |
pankso@12882 | 28 for dir in dvorak azerty qwerty qwertz; do |
pankso@12882 | 29 mkdir -p $fs/usr/share/kbd/keymaps/i386/$dir |
pankso@12882 | 30 done |
al@14904 | 31 |
pankso@708 | 32 # i386 keymaps only. |
al@14904 | 33 for keymap in $(cat $stuff/keymaps-path.list); do |
pankso@12882 | 34 cp -a $install/usr/share/kbd/keymaps/i386/$keymap \ |
pankso@708 | 35 $fs/usr/share/kbd/keymaps/i386/$keymap |
pankso@708 | 36 done |
al@14904 | 37 |
pankso@708 | 38 # Include files |
pankso@12882 | 39 cp -a $install/usr/share/kbd/keymaps/include \ |
pankso@708 | 40 $fs/usr/share/kbd/keymaps |
pankso@12882 | 41 cp -a $install/usr/share/kbd/keymaps/i386/include \ |
pankso@708 | 42 $fs/usr/share/kbd/keymaps/i386/include |
al@14904 | 43 |
pascal@13277 | 44 # X11 keyboard aliases |
pascal@13277 | 45 while read X keymap ; do |
pascal@13277 | 46 ln -s $keymap.map.gz $fs/usr/share/kbd/keymaps/i386/$X.map.gz |
pascal@13277 | 47 done <<EOT |
pascal@13277 | 48 qwertz/hr croat |
pascal@13277 | 49 EOT |
pankso@708 | 50 } |