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