wok annotate xvkbd/receipt @ rev 15488

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