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