wok-6.x annotate kbd/receipt @ rev 24022
linld: basic iso9660 support
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Mar 14 19:55:20 2021 +0000 (2021-03-14) |
parents | b0cfa2140c91 |
children | a3b6dd3aac6f |
rev | line source |
---|---|
pankso@708 | 1 # SliTaz package receipt. |
pankso@708 | 2 |
pankso@708 | 3 PACKAGE="kbd" |
Hans-G?nter@22981 | 4 VERSION="2.2.0" |
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@22981 | 17 |
Hans-G?nter@21089 | 18 HOST_ARCH="i486 arm" |
pankso@15943 | 19 |
pankso@15943 | 20 # Handle cross compilation. |
pankso@15943 | 21 case "$ARCH" in |
Hans-G?nter@21089 | 22 arm) BUILD_DEPENDS="check-dev flex" ;; |
pankso@15943 | 23 esac |
pankso@708 | 24 |
pankso@708 | 25 # Rules to configure and make the package. |
pankso@708 | 26 compile_rules() |
pankso@708 | 27 { |
al@14904 | 28 # standard locale placement |
Hans-G?nter@22981 | 29 sed -i 's|localedir = .*|localedir = @localedir@|' \ |
Hans-G?nter@22981 | 30 po/Makefile.in.in |
Hans-G?nter@21089 | 31 |
pankso@15943 | 32 # Handle cross compilation. |
pankso@15943 | 33 case "$ARCH" in |
pankso@15943 | 34 arm) |
pankso@15943 | 35 # No PAM support for ARM |
Hans-G?nter@21089 | 36 ./configure \ |
Hans-G?nter@21089 | 37 --datadir=/usr/share/kbd \ |
Hans-G?nter@21089 | 38 --localedir=/usr/share/locale \ |
Hans-G?nter@21089 | 39 --disable-vlock \ |
pankso@15943 | 40 $CONFIGURE_ARGS ;; |
pascal@15947 | 41 i486) |
Hans-G?nter@21089 | 42 ./configure \ |
Hans-G?nter@21089 | 43 --datadir=/usr/share/kbd \ |
Hans-G?nter@21089 | 44 --localedir=/usr/share/locale \ |
pankso@15943 | 45 $CONFIGURE_ARGS ;; |
pankso@15943 | 46 esac && |
Hans-G?nter@21089 | 47 make -j 1 && |
Hans-G?nter@21089 | 48 make install && |
Hans-G?nter@21089 | 49 |
pascal@19248 | 50 find $DESTDIR/usr/share/kbd -name '*gz' -exec advdef -z4 {} \; |
pankso@708 | 51 } |
pankso@708 | 52 |
pascal@19248 | 53 |
pankso@708 | 54 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@708 | 55 genpkg_rules() |
pankso@708 | 56 { |
pankso@708 | 57 mkdir -p $fs/usr/share |
pankso@12882 | 58 |
al@14904 | 59 # Copy all kbd files (should we split fonts?) |
Hans-G?nter@22981 | 60 cp -a $install/usr/share/kbd $fs/usr/share |
pankso@12882 | 61 |
pankso@708 | 62 # Tools |
Hans-G?nter@22981 | 63 cp -a $install/usr/bin $fs/usr |
al@14904 | 64 |
al@14904 | 65 # Remove files provided by kbd-base and kbd-vlock. |
Hans-G?nter@22981 | 66 for keymap in $(cat $WOK/kbd-base/stuff/keymaps-path.list) |
Hans-G?nter@22981 | 67 do |
al@14904 | 68 rm -f $fs/usr/share/kbd/keymaps/i386/$keymap |
Hans-G?nter@22981 | 69 done |
Hans-G?nter@22981 | 70 rm -rf $fs/usr/share/kbd/keymaps/include |
Hans-G?nter@22981 | 71 rm -rf $fs/usr/share/kbd/keymaps/i386/include |
Hans-G?nter@22981 | 72 rm -f $fs/usr/bin/loadkeys |
Hans-G?nter@22981 | 73 rm -f $fs/usr/bin/setfont |
Hans-G?nter@22981 | 74 rm -f $fs/usr/bin/vlock |
pankso@708 | 75 } |
pankso@708 | 76 |
pascal@8878 | 77 # Overlap busybox |
pascal@8878 | 78 pre_install() |
pascal@8878 | 79 { |
pankso@12882 | 80 rm -f $root/usr/bin/deallocvt |
pankso@12882 | 81 rm -f $root/usr/bin/chvt |
pankso@12882 | 82 rm -f $root/usr/bin/setkeycodes |
pankso@12882 | 83 rm -f $root/usr/bin/openvt |
pankso@12882 | 84 rm -f $root/usr/bin/kbd_mode |
pascal@8878 | 85 } |
pascal@8878 | 86 |
pascal@8878 | 87 post_remove() |
pascal@8878 | 88 { |
pankso@12882 | 89 ln -s /bin/busybox $root/usr/bin/deallocvt |
pankso@12882 | 90 ln -s /bin/busybox $root/usr/bin/chvt |
pankso@12882 | 91 ln -s /bin/busybox $root/usr/bin/setkeycodes |
pankso@12882 | 92 ln -s /bin/busybox $root/usr/bin/openvt |
pankso@12882 | 93 ln -s /bin/busybox $root/usr/bin/kbd_mode |
pascal@8878 | 94 } |