wok-next annotate xvkbd/receipt @ rev 8359

Up: gnumeric to 1.10.13.
author Christopher Rogers <slaxemulator@gmail.com>
date Thu Feb 03 16:43:24 2011 +0000 (2011-02-03)
parents 1c83aa8ebdfb
children cae2be2e4809
rev   line source
pascal@4000 1 # SliTaz package receipt.
pascal@4000 2
pascal@4000 3 PACKAGE="xvkbd"
paul@5584 4 VERSION="3.2"
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 \
pascal@4001 10 xorg-libXau xorg-libXdmcp"
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 \
pascal@4000 13 xorg-libXtst-dev xorg-xextproto xorg-inputproto xorg-libXmu-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
pascal@4000 23 # remove Xaw3d
pascal@4000 24 sed -i '/#define XAW3D/d' Imakefile
pascal@4000 25 xmkmf &&
pascal@4000 26 make DESTDIR=$PWD/_pkg 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
pascal@4000 33 cp -a $_pkg/usr/bin $fs/usr
paul@4837 34 cp -a $_pkg/usr/lib $fs/usr
paul@4837 35 cp -a $_pkg/etc/X11 $fs/etc
pascal@4000 36 # Add .desktop file
pascal@4000 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
pascal@4000 57 }