wok-6.x annotate kbd/receipt @ rev 16324
connman-ui: set a meaningful name to the source for mirror:/source/packages-cooking/
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Apr 10 11:04:26 2014 +0000 (2014-04-10) |
parents | 159df010240c |
children | 313f1cfd0a62 |
rev | line source |
---|---|
pankso@708 | 1 # SliTaz package receipt. |
pankso@708 | 2 |
pankso@708 | 3 PACKAGE="kbd" |
pankso@15943 | 4 VERSION="2.0.1" |
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" |
pankso@708 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@12882 | 10 WEB_SITE="http://kbd-project.org/" |
pankso@15943 | 11 WGET_URL="ftp://ftp.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" |
pankso@15943 | 16 BUILD_DEPENDS="flex pam-dev check-dev" |
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 && |
pankso@12882 | 43 make && make install |
pankso@708 | 44 } |
pankso@708 | 45 |
pankso@708 | 46 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@708 | 47 genpkg_rules() |
pankso@708 | 48 { |
pankso@708 | 49 mkdir -p $fs/usr/share |
pankso@12882 | 50 |
al@14904 | 51 # Copy all kbd files (should we split fonts?) |
al@14904 | 52 cp -a $install/usr/share/kbd $fs/usr/share |
pankso@12882 | 53 |
pankso@708 | 54 # Tools |
pankso@12882 | 55 cp -a $install/usr/bin $fs/usr |
al@14904 | 56 |
al@14904 | 57 # Remove files provided by kbd-base and kbd-vlock. |
al@14904 | 58 for keymap in $(cat $WOK/kbd-base/stuff/keymaps-path.list); do |
al@14904 | 59 rm -f $fs/usr/share/kbd/keymaps/i386/$keymap |
al@14904 | 60 done |
al@14904 | 61 rm -rf $fs/usr/share/kbd/keymaps/include |
al@14904 | 62 rm -rf $fs/usr/share/kbd/keymaps/i386/include |
al@14904 | 63 rm -f $fs/usr/bin/loadkeys $fs/usr/bin/vlock |
pankso@708 | 64 } |
pankso@708 | 65 |
pascal@8878 | 66 # Overlap busybox |
pascal@8878 | 67 pre_install() |
pascal@8878 | 68 { |
pankso@12882 | 69 rm -f $root/usr/bin/deallocvt |
pankso@12882 | 70 rm -f $root/usr/bin/chvt |
pankso@12882 | 71 rm -f $root/usr/bin/setkeycodes |
pankso@12882 | 72 rm -f $root/usr/bin/openvt |
pankso@12882 | 73 rm -f $root/usr/bin/kbd_mode |
pascal@8878 | 74 } |
pascal@8878 | 75 |
pascal@8878 | 76 post_remove() |
pascal@8878 | 77 { |
pankso@12882 | 78 ln -s /bin/busybox $root/usr/bin/deallocvt |
pankso@12882 | 79 ln -s /bin/busybox $root/usr/bin/chvt |
pankso@12882 | 80 ln -s /bin/busybox $root/usr/bin/setkeycodes |
pankso@12882 | 81 ln -s /bin/busybox $root/usr/bin/openvt |
pankso@12882 | 82 ln -s /bin/busybox $root/usr/bin/kbd_mode |
pascal@8878 | 83 } |