wok-current view xvkbd/receipt @ rev 15099

tty-clock: update wget_url
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Aug 14 12:20:24 2013 +0000 (2013-08-14)
parents 11090b38aa85
children eb8067417980
line source
1 # SliTaz package receipt.
3 PACKAGE="xvkbd"
4 VERSION="3.3"
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 xorg-libXaw3d"
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 xorg-libXaw3d-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 # delete Xaw3d
24 # sed -i '/#define XAW3D/d' Imakefile
25 xmkmf &&
26 make 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 $install/usr/bin $fs/usr
34 cp -a $install/usr/lib $fs/usr
35 cp -a $install/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 rm -f /tmp/listeXdefaults
58 }