wok-current annotate kbd/receipt @ rev 15747
Up: dillo (3.0.3) with better integration for JWM flavor
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri Jan 03 10:29:30 2014 +0100 (2014-01-03) |
parents | a4254bd509cd |
children | 159df010240c |
rev | line source |
---|---|
pankso@708 | 1 # SliTaz package receipt. |
pankso@708 | 2 |
pankso@708 | 3 PACKAGE="kbd" |
al@14904 | 4 VERSION="1.15.5" |
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/" |
al@14904 | 11 #WGET_URL="http://kbd-project.org/download/$TARBALL" |
al@14904 | 12 WGET_URL="ftp://ftp.altlinux.org/pub/people/legion/kbd/$TARBALL" |
jozee@4942 | 13 TAGS="keyboard" |
pankso@12882 | 14 HOST_ARCH="i486 arm" |
pankso@12882 | 15 |
al@14904 | 16 DEPENDS="kbd-base" |
al@14904 | 17 BUILD_DEPENDS="flex pam-dev" |
pankso@708 | 18 |
pankso@708 | 19 # Rules to configure and make the package. |
pankso@708 | 20 compile_rules() |
pankso@708 | 21 { |
al@14904 | 22 # standard locale placement |
al@14904 | 23 sed 's|localedir = .*|localedir = @localedir@|' -i $src/po/Makefile.in.in |
pankso@12882 | 24 ./configure \ |
pankso@12882 | 25 --datadir=/usr/share/kbd \ |
al@14904 | 26 --localedir=/usr/share/locale \ |
pankso@12882 | 27 $CONFIGURE_ARGS && |
pankso@12882 | 28 make && make install |
pankso@708 | 29 } |
pankso@708 | 30 |
pankso@708 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@708 | 32 genpkg_rules() |
pankso@708 | 33 { |
pankso@708 | 34 mkdir -p $fs/usr/share |
pankso@12882 | 35 |
al@14904 | 36 # Copy all kbd files (should we split fonts?) |
al@14904 | 37 cp -a $install/usr/share/kbd $fs/usr/share |
pankso@12882 | 38 |
pankso@708 | 39 # Tools |
pankso@12882 | 40 cp -a $install/usr/bin $fs/usr |
al@14904 | 41 |
al@14904 | 42 # Remove files provided by kbd-base and kbd-vlock. |
al@14904 | 43 for keymap in $(cat $WOK/kbd-base/stuff/keymaps-path.list); do |
al@14904 | 44 rm -f $fs/usr/share/kbd/keymaps/i386/$keymap |
al@14904 | 45 done |
al@14904 | 46 rm -rf $fs/usr/share/kbd/keymaps/include |
al@14904 | 47 rm -rf $fs/usr/share/kbd/keymaps/i386/include |
al@14904 | 48 rm -f $fs/usr/bin/loadkeys $fs/usr/bin/vlock |
pankso@708 | 49 } |
pankso@708 | 50 |
pascal@8878 | 51 # Overlap busybox |
pascal@8878 | 52 pre_install() |
pascal@8878 | 53 { |
pankso@12882 | 54 rm -f $root/usr/bin/deallocvt |
pankso@12882 | 55 rm -f $root/usr/bin/chvt |
pankso@12882 | 56 rm -f $root/usr/bin/setkeycodes |
pankso@12882 | 57 rm -f $root/usr/bin/openvt |
pankso@12882 | 58 rm -f $root/usr/bin/kbd_mode |
pascal@8878 | 59 } |
pascal@8878 | 60 |
pascal@8878 | 61 post_remove() |
pascal@8878 | 62 { |
pankso@12882 | 63 ln -s /bin/busybox $root/usr/bin/deallocvt |
pankso@12882 | 64 ln -s /bin/busybox $root/usr/bin/chvt |
pankso@12882 | 65 ln -s /bin/busybox $root/usr/bin/setkeycodes |
pankso@12882 | 66 ln -s /bin/busybox $root/usr/bin/openvt |
pankso@12882 | 67 ln -s /bin/busybox $root/usr/bin/kbd_mode |
pascal@8878 | 68 } |