wok-current view xvkbd/receipt @ rev 7100

Add grep
author Paul Issott <paul@slitaz.org>
date Wed Nov 03 10:07:25 2010 +0000 (2010-11-03)
parents 1c83aa8ebdfb
children cae2be2e4809
line source
1 # SliTaz package receipt.
3 PACKAGE="xvkbd"
4 VERSION="3.2"
5 CATEGORY="x-window"
6 SHORT_DESC="Virtual (graphical) keyboard program for X Window System."
7 MAINTAINER="paul@slitaz.org"
8 DEPENDS="xorg-libXt xorg-libX11 xorg-xproto xorg-libSM xorg-libXaw \
9 xorg-libICE xorg-libXp xorg-libXtst xorg-libXmu xorg-libXpm xorg-libXext \
10 xorg-libXau xorg-libXdmcp"
11 BUILD_DEPENDS="xorg-imake xorg-cf-files xorg-libXt-dev xorg-libX11-dev \
12 xorg-xproto xorg-libSM-dev xorg-libXaw-dev xorg-libICE-dev xorg-libXp-dev \
13 xorg-libXtst-dev xorg-xextproto xorg-inputproto xorg-libXmu-dev"
14 TARBALL="$PACKAGE-$VERSION.tar.gz"
15 WEB_SITE="http://homepage3.nifty.com/tsato/xvkbd/"
16 WGET_URL="${WEB_SITE}$TARBALL"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 cd $src
23 # remove Xaw3d
24 sed -i '/#define XAW3D/d' Imakefile
25 xmkmf &&
26 make DESTDIR=$PWD/_pkg install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr $fs/etc
33 cp -a $_pkg/usr/bin $fs/usr
34 cp -a $_pkg/usr/lib $fs/usr
35 cp -a $_pkg/etc/X11 $fs/etc
36 # Add .desktop file
37 cp -a stuff/* $fs
38 }
40 post_install()
41 {
42 # .Xdefaults file
43 lang=$(echo $LANG | awk '{FS="_"} {print $1}')
44 find /home -maxdepth 2 -name ".Xdefaults" > /tmp/listeXdefaults
45 while read line
46 do
47 if ! grep -q "Xvkbd settings" $line; then
48 cat >> $line << EOT
50 ! Xvkbd settings
51 !
52 xvkbd*Font: -misc-fixed-medium-r-semicondensed--0-0-75-75-c-0-iso8859-1
53 EOT
54 echo "xvkbd.Layout : $lang" >> $line
55 fi
56 done </tmp/listeXdefaults
57 }