wok annotate kbd/receipt @ rev 22842

updated getmail (5.8 -> 5.14)
author Hans-G?nter Theisgen
date Fri Feb 14 15:43:53 2020 +0100 (2020-02-14)
parents d5d1aacad4ba
children 620819a54fad
rev   line source
pankso@708 1 # SliTaz package receipt.
pankso@708 2
pankso@708 3 PACKAGE="kbd"
Hans-G?nter@21089 4 VERSION="2.0.4"
pankso@708 5 CATEGORY="system-tools"
Hans-G?nter@21089 6 TAGS="keyboard"
Hans-G?nter@21089 7 SHORT_DESC="Keyboard mapping definitions and tools."
pankso@708 8 MAINTAINER="pankso@slitaz.org"
pascal@14770 9 LICENSE="GPL2"
Hans-G?nter@21089 10 WEB_SITE="http://kbd-project.org/"
Hans-G?nter@21089 11
al@17920 12 TARBALL="$PACKAGE-$VERSION.tar.xz"
pascal@17923 13 WGET_URL="https://www.kernel.org/pub/linux/utils/kbd/$TARBALL"
pankso@12882 14
al@14904 15 DEPENDS="kbd-base"
Hans-G?nter@21089 16 BUILD_DEPENDS="advancecomp check-dev flex pam-dev"
Hans-G?nter@21089 17 HOST_ARCH="i486 arm"
pankso@15943 18
pankso@15943 19 # Handle cross compilation.
pankso@15943 20 case "$ARCH" in
Hans-G?nter@21089 21 arm) BUILD_DEPENDS="check-dev flex" ;;
pankso@15943 22 esac
pankso@708 23
pankso@708 24 # Rules to configure and make the package.
pankso@708 25 compile_rules()
pankso@708 26 {
al@14904 27 # standard locale placement
al@14904 28 sed 's|localedir = .*|localedir = @localedir@|' -i $src/po/Makefile.in.in
Hans-G?nter@21089 29
pankso@15943 30 # Handle cross compilation.
pankso@15943 31 case "$ARCH" in
pankso@15943 32 arm)
pankso@15943 33 # No PAM support for ARM
Hans-G?nter@21089 34 ./configure \
Hans-G?nter@21089 35 --datadir=/usr/share/kbd \
Hans-G?nter@21089 36 --localedir=/usr/share/locale \
Hans-G?nter@21089 37 --disable-vlock \
pankso@15943 38 $CONFIGURE_ARGS ;;
pascal@15947 39 i486)
Hans-G?nter@21089 40 ./configure \
Hans-G?nter@21089 41 --datadir=/usr/share/kbd \
Hans-G?nter@21089 42 --localedir=/usr/share/locale \
pankso@15943 43 $CONFIGURE_ARGS ;;
pankso@15943 44 esac &&
Hans-G?nter@21089 45
Hans-G?nter@21089 46 make -j 1 &&
Hans-G?nter@21089 47 make install &&
Hans-G?nter@21089 48
pascal@19248 49 find $DESTDIR/usr/share/kbd -name '*gz' -exec advdef -z4 {} \;
pankso@708 50 }
pankso@708 51
pascal@19248 52
pankso@708 53 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@708 54 genpkg_rules()
pankso@708 55 {
pankso@708 56 mkdir -p $fs/usr/share
pankso@12882 57
al@14904 58 # Copy all kbd files (should we split fonts?)
al@14904 59 cp -a $install/usr/share/kbd $fs/usr/share
pankso@12882 60
pankso@708 61 # Tools
pankso@12882 62 cp -a $install/usr/bin $fs/usr
al@14904 63
al@14904 64 # Remove files provided by kbd-base and kbd-vlock.
al@14904 65 for keymap in $(cat $WOK/kbd-base/stuff/keymaps-path.list); do
al@14904 66 rm -f $fs/usr/share/kbd/keymaps/i386/$keymap
al@14904 67 done
al@14904 68 rm -rf $fs/usr/share/kbd/keymaps/include
al@14904 69 rm -rf $fs/usr/share/kbd/keymaps/i386/include
Hans-G?nter@21089 70 rm -f $fs/usr/bin/loadkeys
Hans-G?nter@21089 71 rm -f $fs/usr/bin/setfont
Hans-G?nter@21089 72 rm -f $fs/usr/bin/vlock
pankso@708 73 }
pankso@708 74
pascal@8878 75 # Overlap busybox
pascal@8878 76 pre_install()
pascal@8878 77 {
pankso@12882 78 rm -f $root/usr/bin/deallocvt
pankso@12882 79 rm -f $root/usr/bin/chvt
pankso@12882 80 rm -f $root/usr/bin/setkeycodes
pankso@12882 81 rm -f $root/usr/bin/openvt
pankso@12882 82 rm -f $root/usr/bin/kbd_mode
pascal@8878 83 }
pascal@8878 84
pascal@8878 85 post_remove()
pascal@8878 86 {
pankso@12882 87 ln -s /bin/busybox $root/usr/bin/deallocvt
pankso@12882 88 ln -s /bin/busybox $root/usr/bin/chvt
pankso@12882 89 ln -s /bin/busybox $root/usr/bin/setkeycodes
pankso@12882 90 ln -s /bin/busybox $root/usr/bin/openvt
pankso@12882 91 ln -s /bin/busybox $root/usr/bin/kbd_mode
pascal@8878 92 }