wok-6.x annotate kbd/receipt @ rev 13732
Add firmware-rtlwifi
author | Richard Dunbar <mojo@slitaz.org> |
---|---|
date | Sun Dec 23 17:59:51 2012 +0000 (2012-12-23) |
parents | b7319995b37e |
children | a4254bd509cd |
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." |
pankso@708 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@708 | 8 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@12882 | 9 WEB_SITE="http://kbd-project.org/" |
pankso@12882 | 10 WGET_URL="http://kbd-project.org/download/$TARBALL" |
jozee@4942 | 11 TAGS="keyboard" |
pankso@12882 | 12 HOST_ARCH="i486 arm" |
pankso@12882 | 13 |
pankso@12882 | 14 #BUILD_DEPENDS="flex" |
pankso@708 | 15 |
pankso@708 | 16 # Rules to configure and make the package. |
pankso@708 | 17 compile_rules() |
pankso@708 | 18 { |
pankso@708 | 19 cd $src |
slaxemulator@9850 | 20 patch -Np1 -i $stuff/fix-es.po.patch |
pankso@12882 | 21 ./configure \ |
pankso@12882 | 22 --datadir=/usr/share/kbd \ |
pankso@12882 | 23 $CONFIGURE_ARGS && |
pankso@12882 | 24 make && make install |
pankso@708 | 25 } |
pankso@708 | 26 |
pankso@708 | 27 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@708 | 28 genpkg_rules() |
pankso@708 | 29 { |
pankso@708 | 30 mkdir -p $fs/usr/share |
pankso@12882 | 31 |
pankso@12882 | 32 # Copy all kbd files (should we split fonts ?) and remove the one |
pankso@708 | 33 # provided by: kbd-base. |
pankso@708 | 34 cp -a $_pkg/usr/share/kbd $fs/usr/share |
pankso@708 | 35 rm -rf $fs/usr/share/kbd/keymaps/i386 |
pankso@12882 | 36 |
pankso@708 | 37 # Tools |
pankso@12882 | 38 cp -a $install/usr/bin $fs/usr |
pankso@708 | 39 } |
pankso@708 | 40 |
pascal@8878 | 41 # Overlap busybox |
pascal@8878 | 42 pre_install() |
pascal@8878 | 43 { |
pankso@12882 | 44 rm -f $root/usr/bin/deallocvt |
pankso@12882 | 45 rm -f $root/usr/bin/chvt |
pankso@12882 | 46 rm -f $root/usr/bin/setkeycodes |
pankso@12882 | 47 rm -f $root/usr/bin/openvt |
pankso@12882 | 48 rm -f $root/usr/bin/kbd_mode |
pascal@8878 | 49 } |
pascal@8878 | 50 |
pascal@8878 | 51 post_remove() |
pascal@8878 | 52 { |
pankso@12882 | 53 ln -s /bin/busybox $root/usr/bin/deallocvt |
pankso@12882 | 54 ln -s /bin/busybox $root/usr/bin/chvt |
pankso@12882 | 55 ln -s /bin/busybox $root/usr/bin/setkeycodes |
pankso@12882 | 56 ln -s /bin/busybox $root/usr/bin/openvt |
pankso@12882 | 57 ln -s /bin/busybox $root/usr/bin/kbd_mode |
pascal@8878 | 58 } |