wok-current annotate kbd/receipt @ rev 9366
Up: cairo to 1.10.2.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Tue Mar 22 18:01:23 2011 +0000 (2011-03-22) |
parents | 9b7526485ebb |
children | eef7c8c8ad4e |
rev | line source |
---|---|
pankso@708 | 1 # SliTaz package receipt. |
pankso@708 | 2 |
pankso@708 | 3 PACKAGE="kbd" |
pankso@708 | 4 VERSION="1.12" |
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 |
pankso@708 | 18 ./configure \ |
pankso@708 | 19 --prefix=/usr \ |
pankso@708 | 20 --mandir=/usr/share/man |
pankso@708 | 21 make |
pankso@708 | 22 make DESTDIR=$PWD/_pkg install |
pankso@708 | 23 } |
pankso@708 | 24 |
pankso@708 | 25 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@708 | 26 genpkg_rules() |
pankso@708 | 27 { |
pankso@708 | 28 mkdir -p $fs/usr/share |
pankso@708 | 29 |
pankso@708 | 30 # Copy all kbd files (should we split fonts ?) and remove the one |
pankso@708 | 31 # provided by: kbd-base. |
pankso@708 | 32 cp -a $_pkg/usr/share/kbd $fs/usr/share |
pankso@708 | 33 rm -rf $fs/usr/share/kbd/keymaps/i386 |
pankso@708 | 34 |
pankso@708 | 35 # Tools |
pankso@708 | 36 cp -a $_pkg/usr/bin $fs/usr |
pankso@708 | 37 } |
pankso@708 | 38 |
pascal@8878 | 39 # Overlap busybox |
pascal@8878 | 40 pre_install() |
pascal@8878 | 41 { |
pascal@8878 | 42 rm -f $1/usr/bin/deallocvt |
pascal@8878 | 43 rm -f $1/usr/bin/chvt |
pascal@8878 | 44 rm -f $1/usr/bin/setkeycodes |
pascal@8878 | 45 rm -f $1/usr/bin/openvt |
pascal@8878 | 46 rm -f $1/usr/bin/kbd_mode |
pascal@8878 | 47 } |
pascal@8878 | 48 |
pascal@8878 | 49 post_remove() |
pascal@8878 | 50 { |
pascal@8878 | 51 ln -s /bin/busybox /usr/bin/deallocvt |
pascal@8878 | 52 ln -s /bin/busybox /usr/bin/chvt |
pascal@8878 | 53 ln -s /bin/busybox /usr/bin/setkeycodes |
pascal@8878 | 54 ln -s /bin/busybox /usr/bin/openvt |
pascal@8878 | 55 ln -s /bin/busybox /usr/bin/kbd_mode |
pascal@8878 | 56 } |