wok-next annotate kbd/receipt @ rev 12037

linux, linux-libre: do not create $WOK/tmp
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Mar 07 09:10:02 2012 +0100 (2012-03-07)
parents eef7c8c8ad4e
children f6382af837a6
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
gokhlayeh@11573 19 ./configure --datadir=/usr/share/kbd $CONFIGURE_ARGS &&
gokhlayeh@11573 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 }