wok-6.x annotate kbd/receipt @ rev 10158

Up: openshot to 1.3.1.
author Christopher Rogers <slaxemulator@gmail.com>
date Fri May 20 19:39:54 2011 +0000 (2011-05-20)
parents 2ad34d8fdfe7
children b7319995b37e
rev   line source
pankso@708 1 # SliTaz package receipt.
pankso@708 2
pankso@708 3 PACKAGE="kbd"
slaxemulator@9850 4 VERSION="1.15.3"
pankso@708 5 CATEGORY="system-tools"
pankso@708 6 SHORT_DESC="Keyboard maping definitions and tools."
gokhlayeh@8219 7 BUILD_DEPENDS="flex"
pankso@708 8 MAINTAINER="pankso@slitaz.org"
pankso@708 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@708 10 WEB_SITE="http://www.kernel.org/pub/linux/utils/kbd/"
pankso@708 11 WGET_URL="http://www.kernel.org/pub/linux/utils/kbd/$TARBALL"
jozee@4942 12 TAGS="keyboard"
pankso@708 13
pankso@708 14 # Rules to configure and make the package.
pankso@708 15 compile_rules()
pankso@708 16 {
pankso@708 17 cd $src
slaxemulator@9850 18 patch -Np1 -i $stuff/fix-es.po.patch
slaxemulator@9850 19 ./configure --datadir=/usr/share/kbd &&
slaxemulator@9850 20 make &&
slaxemulator@9850 21 make install
pankso@708 22 }
pankso@708 23
pankso@708 24 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@708 25 genpkg_rules()
pankso@708 26 {
pankso@708 27 mkdir -p $fs/usr/share
pankso@708 28
pankso@708 29 # Copy all kbd files (should we split fonts ?) and remove the one
pankso@708 30 # provided by: kbd-base.
pankso@708 31 cp -a $_pkg/usr/share/kbd $fs/usr/share
pankso@708 32 rm -rf $fs/usr/share/kbd/keymaps/i386
pankso@708 33
pankso@708 34 # Tools
pankso@708 35 cp -a $_pkg/usr/bin $fs/usr
pankso@708 36 }
pankso@708 37
pascal@8878 38 # Overlap busybox
pascal@8878 39 pre_install()
pascal@8878 40 {
pascal@8878 41 rm -f $1/usr/bin/deallocvt
pascal@8878 42 rm -f $1/usr/bin/chvt
pascal@8878 43 rm -f $1/usr/bin/setkeycodes
pascal@8878 44 rm -f $1/usr/bin/openvt
pascal@8878 45 rm -f $1/usr/bin/kbd_mode
pascal@8878 46 }
pascal@8878 47
pascal@8878 48 post_remove()
pascal@8878 49 {
slaxemulator@9850 50 ln -s /bin/busybox $1/usr/bin/deallocvt
slaxemulator@9850 51 ln -s /bin/busybox $1/usr/bin/chvt
slaxemulator@9850 52 ln -s /bin/busybox $1/usr/bin/setkeycodes
slaxemulator@9850 53 ln -s /bin/busybox $1/usr/bin/openvt
slaxemulator@9850 54 ln -s /bin/busybox $1/usr/bin/kbd_mode
pascal@8878 55 }